Automatic version detection after iOS app starts

Source: Internet
Author: User

I found out today, AppStore. Provides links to client information in JSON format via URL:

Http://itunes.apple.com/lookup?id= $id

Use this address to get the app's icon, description, version number, and release notes

For example, request a secret JSON message:

Java code  
    1. http://itunes.apple.com/lookup?id=839415177

Java code
  1. {
  2. "Resultcount":1,
  3. "Results": [
  4. {"kind":"Software", "features": [],
  5. "Supporteddevices": ["Ipodtouchfifthgen", "Ipad2wifi", "Ipadfourthgen", "ipadfourthgen4g", " ipadmini4g ", " Ipadthirdgen ", " Ipadmini ", " IPhone5 ", " iphone5c ", " ipad23g ", " iPhone4 ", "Iphone4s", "ipadthirdgen4g", "iphone5s"], "isgamecenterenabled":false,
  6. "Screenshoturls": ["Http://a4.mzstatic.com/us/r30/Purple4/v4/3f/ee/08/3fee086d-cd99-2ac0-2159-99372c989ad3/screen1136x1136.jpeg","Http://a3.mzstatic.com/us/r30/Purple6/v4/07/a6/2d/07a62d2a-0bdc-ae5f-2239-532c364e9641/screen1136x1136.jpeg","Http://a2.mzstatic.com/us/r30/Purple4/v4/3f/e0/ca/3fe0ca8d-67bd-2923-d3c1-797dd362c0cb/screen1136x1136.jpeg","Http://a2.mzstatic.com/us/r30/Purple6/v4/4a/0d/9f/4a0d9f68-79fb-f0ca-d0c0-570da23ae037/screen1136x1136.jpeg","Http://a1.mzstatic.com/us/r30/Purple4/v4/04/7b/63/047b63d5-1f09-04fd-1c5c-3fabf45b33fc/screen1136x1136.jpeg"] ,"Ipadscreenshoturls": [], "artworkUrl60":"http://a1246.phobos.apple.com/us/r30/Purple/v4/c9/71/71/ C97171eb-c2f9-4b13-378d-d5cfdde611b4/icon.png ", " artworkUrl512 ":" http://a1418.phobos.apple.com/us/r30/ Purple/v4/33/d0/63/33d063f6-c2d1-a2fd-4490-d2ab86ac071b/mzl.cctcjnum.png ", " Artistviewurl ":" https:// Itunes.apple.com/us/artist/shenzhen-wumii-technology/id593518769?uo=4 ", " ArtistID ":593518769, " Artistname ":" Shenzhen wumii technology Limited ", " Price ":0.00, " version ":" 1.1 ",
  7. "description":"Secret" is the anonymous version of the circle of friends you can and friends without scruple to share secrets, gossip, explosive material, sincere words and so on the hot content! \n\n"secret" is not a tree hole, nor is it a drifting bottle \ \ You see the secret comes from friends around you! " Also, the secrets you send will be shown to your friends to give you feedback from those who care most about you! \n\n"secret" let you wear a mask, remove your identity "the post and comment are anonymous, as if you and your friends are wearing masks, are participating in a masquerade party! Remove the identity, friends can speak freely! \ n \ nthe "main function" \n\n1. View the secret \n2 from a friend. Anonymous publishing of Secrets and commentary \n3. Support for beautifully formatted \n4. Extremely strict privacy protection \n\n\n "When friends are anonymous, what will they do?" "\ n in the circle of friends: \n" or BMW 5 Series open Comfortable, it is time to say goodbye to my Audi A4! " "\n in secret: \n" woke up in the morning I was saddled with a mortgage car loan all kinds of loans, pressure is great, alive really tired! "\n\n in the circle of friends: \n" can open his eyes every day with his husband said Good morning, this is my greatest happiness! "\n in secret: \n"3 years ago I embarked on the Yangtze River Two bridges, intended to end life, but because he stayed. He is my husband now. "\n\n more Friends of the secret, and so you find \u2026\u2026\n\n\n official Weibo: @ Secret app,"Currency":"USD","Genres": ["Social Networking","Lifestyle"],"Genreids": ["6005","6012"],"ReleaseDate":"2014-04-04t09:58:58z","Sellername":"Shenzhen wumii technology Limited","Bundleid":"Com.wumii.ios.WMMimi","TrackID":839415177,"TrackName":"Secret-anonymous explosive of the circle of Friends","Primarygenrename":"Social Networking","Primarygenreid":6005,"Releasenotes":"-New reset password function \ n \ n new comments show floor \ n-Support international mobile phone number registration login \ n-Improve application stability""Formattedprice":"Free","Wrappertype":"Software","Trackcensoredname":"Secret-anonymous explosive of the circle of Friends","LANGUAGECODESISO2A": ["EN","ZH"],"Filesizebytes":"15325961", "contentadvisoryrating":"12+", "averageuserratingforcurrentversion":4.0, " Userratingcountforcurrentversion ": +, " artworkUrl100 ":" http://a1418.phobos.apple.com/us/r30/Purple/ V4/33/d0/63/33d063f6-c2d1-a2fd-4490-d2ab86ac071b/mzl.cctcjnum.png ", " Trackviewurl ":" https:// Itunes.apple.com/us/app/mi-mi-peng-you-quan-ni-ming/id839415177?mt=8&uo=4 ", " trackContentRating ": "12+", "averageuserrating":4.0, "Userratingcount": []
  8. }

Recall that previous iOS version detection is a client pull server, the service side returns the latest version information and the new instructions, and the server needs to maintain an iOS version update record, in fact, the update function is complicated;

Subsequent iOS versions can be updated with:

1. Only one AppStore ID is maintained in the background

2. Each time the client detects upgrade directly request AppStore, get AppStore version information, and then local determine whether there is a new version, there is prompt update

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.