Warnings such as this will certainly be against Apple recommendations. For iOS devices, the App App displays the App Store app with an icon showing the number of available updates. The developer does not need to do anything.
If you are worried that the user missed updating your application, be sure that iOS users are closely monitoring the application in the application store and know that all updates pass through it.
However, there are hacker methods by which you can understand that this is your first launch after the update without accessing the web service or the iTunes / App store.
One of the hacks I know:
Get the path to the library directory -
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES); NSString *libPath = ([paths count] > 0) ? [paths objectAtIndex:0] : nil;
libPath will be something like: / var / mobile / Applications / 8CFB747F-9446-44CB-98B9-C6FF1CF7BF93 / Library
This random line before / library changes with each update. You can save this line in NSUserDefaults and compare the path with the saved line at each start. If the lines are different from each other, this means that this is your first start after the update. Display an update warning! Then update the saved row with a new one.
NTN
Akshay
source share