IPhone Application and Programming Updates

When a user logs into my iPhone app. I store their user ID and related information in [NSUserDefaults standardUserDefaults]. Therefore, they are not required to register every time they access my application.

When my application is live on the app store and I make code updates, this information will be lost - then will they be required to log in? If so, how can I save this information when creating updates?

And while I can’t imagine how this happens, but if the user wants to remove my application after installing it, how do I know that they deleted it? I use push notifications and I want to note that the user is inactive, so I do not continue to issue notifications to them.

Thank you very much Cheryl

+3
source share
1 answer

Only testing will confirm how the update process works for your application. Here is what the document says:

Files saved during application updates

. , iTunes . . : :

  • Application_Home > /
  • Application_Home > /Library/Preferences

, , .

http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/RuntimeEnvironment/RuntimeEnvironment.html

push- , , Apple Push Notification Service. , . , APNs - , . .

Apple Push Notification Service , APN , . , . , , . , , , .

http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingWIthAPS/CommunicatingWIthAPS.html#//apple_ref/doc/uid/TP40008194-CH101-SW1

+6

Source: https://habr.com/ru/post/1747422/


All Articles