iphone application update - iphone

i would like to check:
if a user downloaded my app, than i make some update to app, data etc., itunes will auto remind the user of the update through app store, and the user can update for free? or do i have to set such reminder in my application?
else, is there a way for me to send this notification?
thks
Rgds

Yes, the phone notifies of app updates through the App Store app and app updates are free.
Alternatively, you can use push notifications to notify the user that a new version is available, or display an alert the next time they open the app.
To do the latter you can query the version of the app ([[NSBundle mainBundle] objectForInfoDictionaryKey:#"CFBundleVersion"];) and compare it to a value provided by your web server.

Related

To update ios app when newer version is available

I am totally new to ios development.
I have an ios7 and ios8 app which do polling to Server to check for latest version.
Once the latest version of app is available I am opening Alert Box(Notification) for user to update App.
Now, once user click on Update Button, Which API I need to use to get latest version of App from Apple App Store or Web Store.
And how can I move the user's saved preferences to new App.
Will be helpful If some one can put code sample to do so.
I don't believe there's an API which you can call to update the app. The only option available is to send the user to the App Store page for your app where they will see the update button.
As far as preferences go if you're storing them in NSUserDefaults or as a plist then they should persist unless the user deletes the application from the device.
I found the solution to my problem.
Every App has a unique url in the App Store.
Lets assume you have updated your app from version 1.1 to 1.2 and releases app in app store.
Now in the application after checking your app version you can use openURL method to redirect to the url of App in app Store
e.g.
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"AppURL-String"]];

how to implement automatic update feature in iphone?

I am developing an iPhone app. It has an option called automatic update. it can be updated automatically once in a week/month/6 months. Could you please let me know How can I invoke my desired method based on this setting even my app was not opened by the user?
You can't, the user will need to open the app, there is no way to schedule update routines.
You could inform the user that he/she need to update with an UILocalNotification, but I would suggest only to update your app when the users starts it.
It's against apples rules to push an updated app within your app. You have to resubmit to the app store.
what you can do is that increase badge count of application icon on receiving notification from UIlocalNotification.
when user open application check the application badge count if it is more than zero apply your logic to update application.
else there will be no update popup to client.

Notify User about new update of application in app store as a alert and automatically install updated version in iPhone?

Currently my application with version 1.1 is available in app store.
Current Scenario: when i update new version update is shown in app store when user goes to app store.
Required: As soon as user starts application alert should be popped up and if new version is available in app store it should automatically install that if user clicks OK.
Please suggest me the way to do this.
You can't make it install automatically, you can send the user to the app store app with your itunes app url.
Also you will need to make you're own webservice to check if a new version is available.

How to show the badge of notification on the App Store icon in iPhone?

I want to show the badge of notification on the App Store icon in iPhone after approving the update of application on the App Store.
Does developer has to do any thing for that badge of Notification or App Store will take care of it?
Please suggest me regarding it.
Thanks in advance.
You can't trigger this badge yourself.
The badge is updated once the user opens the App Store and the store checks for updates for all installed apps. If there are updates, the App Store will update this badge itself.
There's no central instance that triggers this badge, especially it is not "attached" to push notifications.
It's automatic, you don't have to do anything.

is there a way to automatically update iPhone apps?

I am looking for some way to automatically launch the app store on an iPhone from within an app. For example, the user logs in using the app, and the server requires a specific version of the app. Can I open the app store, or grab the upgrade automatically, or does the user need to go through the app store manually?
Thanks in advance,
Conrad
The user needs to go through the AppStore to get the upgrade. The user might choose not to upgrade the app for whatever reason and you can't force update.
Of course, you can navigate to the AppStore page and offer the choice to the user.
Have you tried [[UIApplication sharedApplication] openURL:#"itms://..."] with the URL for your app?