iosnsuserdefaultsdocumentsdirectory

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.


Solution

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

    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.