It turns out there's an API that Apple run that can return, in a handy JSON or JSONP format, the metadata for a particular app on the app store. This includes both the version number of the app, and even better, the 'what's new in this version' text.
You can use this information on your app's startup to check if a new version is available, and tell the user what's in it, and then finally, link them to the update page for the app.
Here's some bare-bones bits of example code to get you going. You'll need to know your app's Apple ID (e.g. 387022138). You can find this in the iTunes Connect interface). I'm also assuming that you're using jQuery or Zepto in your app.
The below also works in the browser.
// Alert the version number and release notes of an app.
$.ajax({
url:"http://itunes.apple.com/lookup?id=<APPLE ID HERE>&callback=?",
success:function(data) {
if (data && data.results && data.results.length) {
alert(data.results[0].version);
alert(data.results[0].releaseNotes);
}
}
});
Here's the full list of data you might want to use:
Screengrab showing properties of the response from the API call. Click to view full size. |
To open iTunes looking at your App's update page open the following URL:
itms-apps://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftwareUpdate?id=<APPLE ID HERE>&mt=8
This article is very much helpful and i hope this will be an useful information for the needed one. Keep on updating these kinds of informative things...
ReplyDeleteios App Development Company
Servlet destroy callback
ReplyDeleteservlets examples about java programming