Notify User about new update of application in app store as a alert and automatically install updated version in iPhone? - 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.

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"]];

Paid app to Free app with Inapp purchase

I have my paid app in appstore now I am converting it to a free app with inapp purchase. and i want to give the data free for the user's who purchased my Version 1.0. At this point I am facing a problem. If the user buys my paid app and if he deletes the app after sometime before I release my update what should I do in this case I want to give the data for free for the user's who deleted the app also. I have two questions here
1) Will my app gets approved even If I don't give the data for free for the users who deleted the application and doesn't have any backup of my app ?
2) If it is possible to give the data for free for the user's who deleted the app please tell me the way how to do it?
You can not do anything if the user delete the app from device and install your latest in app purchase version. If your application is interacting with your server and storing information about the user who purchased the app, means it depend of your app functionality. If your app is social networking app any login/ registration is there inside your app and that registration of user you are storing on your server then you can allow free access of your app based on the registration mail id of that user.
Secondly, if you have any database sqllite inside your application then you can allow free access of your users based on that database.What you can do is on your latest release change the name of hat database and when your application start then you can check if previously database exist already if yes that means that is old user and you can allow that user free access of your content.Plese note that if user delete the app before installing your latest version then in that case we can not do anything and another a case is that
if user install his app on another iPad then in that case also we can not do anything. Now answer to your questions:- 1. yes your app gets approved by apple whether or not you are giving content free to old user apple did not care of that. 2. we can not do anything if user delete the app before installing your latest version of app until and unless your app has some interaction with your server.Let me know if you have any other questions

iphone application update

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.

Create a popup "a new version of this app is available"

I would like to display a popup in my iPhone app that alert users when a new version is available in the appstore with a direct link to the iTunes page of the app.
Do you know how can I implement that?
Thank you for your help.
Store the version in the app in a file or something. Then, store the latest version number on a server somewhere. When the app launches, see if they match.
you can checkout https://github.com/nicklockwood/iVersion for how to ask the appStore which version is on the store.

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?