11

Background

I am a server-side developer working on an API for an iOS app. From time to time as we are in development (when we have big database changes) we reset our server. This process clears all the server-side data for a member including any App device tokens used for push notifications.

Problem

At the same time as I reset the server database I have been trying to uninstall the app and delete any associated app data. I was hoping that if I did this the next time I install the App it would be like it was a first time download again. This is not working.

How I am doing this:

I have tried the steps listed on the following site https://developer.apple.com/library/ios/recipes/xcode_help-devices_organizer/articles/remove_app_from_device.html.

I have also tried uninstalling via the phone:

Under Settings > General > Usage > STORAGE > Manage Storage. I have been clicking on the app and then clicking Delete App;

Under Settings > General > Usage > ICLOUD > Manage Storage. I have been clicking on the current device, then selecting the app and turning off backup and deleting.

I had hoped that this would remove all data so that when I reinstall via Xcode or Test Flight App, the app would start just like a first time user again. However this is not happening. The app still seems to remember some settings, in particular it thinks I have already sent my device token and won't prompt me for it again.

Question

How should I be uninstalling an app form a device so that all app data is removed and the next time a reinstall I am treated as a new user?

7
  • 4
    Did you reset the device (press and hold Home and Sleep until the Apple logo appears) between deleting the app and reinstalling it? App data is not truly deleted until the device has been reset, and if you reinstall an app before that occurs, it will reuse the old data.
    – tubedogg
    Mar 9 '15 at 6:09
  • Yes, that seems to help with most settings (Not PUSH Notifications). I also had to make sure I was logged out of the app or session information would be stored in the keychain. I still seem to be having issues with the push notification settings, no matter what I do I cannot make the app think I am a new user and prompt me to resend the device ID to our server.
    – Levi Putna
    Mar 10 '15 at 5:16
  • 3
    @tubedogg, Reset the device? Wouldn't that delete everything? How would one go about deleting just the app and its data alone?
    – Pacerier
    Dec 30 '15 at 22:08
  • I am sure that @tubedogg suggested to restart the operating system on the iPhone.
    – Gogowitsch
    Sep 15 '19 at 14:16
  • 1
    @tubegodd That is not a reset, it is simply a restart of the iPhone.
    – Todd
    May 6 '20 at 14:21
1

Please try the following:

  1. Go to Settings --> General --> (iPhone/iPad/iPod/ect.)Storage --> Select app and "Delete App"

  2. Go to Settings --> Profiles & Device Management (Could also be called "Profiles", if you don't use this feature, it will not be there) and delete any app data.

  3. Go to Settings --> [Your Name] (At the very top) --> iCloud --> Manage Storage --> Select the app and "Delete Data"

  4. Delete and re-install the "Test Flight" app

  5. Completely reset the device (Press and hold Home and Sleep until the Apple logo appears)

5a. If this device is only for testing, you can go to Settings --> General --> Reset --> Reset All Settings

  1. Reinstall the app

Let me know if it works!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .