简体   繁体   中英

How can I access a user's data for our iOS app?

We have a bug in our released iOS app that we cannot reproduce and is only affecting a small amount of users. I'm currently in contact with a couple users that are willing to help but I need a way to get all of the data they have in our app so they can send it to us. Is there a way for them to make a backup of the app and send it to us?

Info I need includes the Private Documents directory and their NSUserDefaults data. I know I can use iExplorer to get access to their Private Documents directory but getting their NSUserDefaults info is proving to be a little more tricky.

If you have access to the physical device then you can use the following steps provided in the question iPhone: Where NSUserDefaults get stored? :

  • Connect Your device to xcode
  • select Windows->Organiser
  • select you device
  • tap on your application
  • select applicationData tapping down list
  • tap down arrow and download that folder
  • open downloaded folder
  • Library -> Preferences -> appbundlename.plist

If you don't have physical access to the device then I would just create a small update for your app, which includes code to access NSUserDefaults and upload it to a remote server. You would just ask your users to install this update and then you'd have access to their local device data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM