Is it possible to get app id from iOS application programmatically?

前端 未结 6 1097
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-01 11:59

Is there any way for getting appstore id from running iOS application? (For asking user to rate it and providing link to appstore.)

6条回答
  •  余生分开走
    2021-01-01 12:22

    Yes, it is. You can't get appstore app id (called Apple ID in iTunes Connect) offline, but you can request it using iTunes Search Api. Download the context of the following link:

    http://itunes.apple.com/lookup?bundleId=YOUR_APP_BUNDLE_ID
    

    You will get a JSON response, containing "trackId":YOUR_APP_ID key-value. Try it in your browser!

    My answer is based on the another answer: https://stackoverflow.com/a/11626157/3050403

提交回复
热议问题