Go to: Obtain the version of an iOS app from the appstore.

Source: Internet
Author: User
Obtain the version of an iOS app from the appstore.

An app in IOS is created. In normal cases, the appstore prompts an update. However, if you do not push the app or open the appstore, you do not know that there is a new version, A version update reminder is required. When a new version is available on the appstore, you are prompted to update the version. The key is how to obtain the version information on the appstore, which can be queried through the rest interface provided by Apple. The rest interface is as follows:

Http://itunes.apple.com/lookup? Id = appid;

You can use your own appid to replace the ID content to get a JSON content. The content is clear and you can see it at a Glance. There is a version information and the corresponding update information, APP address.

By the way, you can obtain the version information of this product.

Nsstring* Thisversion = [[Nsbundle Mainbundle] Objectforinfodictionarykey: (Nsstring*)Kcfbundleversionkey];

You can refer to the followingCode

Https://github.com/jacobsologub/appdate

Go to the appstore product page and getTrackviewurl, jump to the past in the following way.

Nsurl* Url = [Nsurl Urlwithstring: Itunesurl]; //Itunesurl =Trackviewurl content

[[Uiapplication Sharedapplication]Openurl: Url];

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.