是否可以通过编程方式从 iOS 应用程序获取应用程序 ID? [英] Is it possible to get app id from iOS application programmatically?

查看:27
本文介绍了是否可以通过编程方式从 iOS 应用程序获取应用程序 ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法从运行的 iOS 应用程序中获取 appstore id?(用于要求用户对其进行评分并提供指向应用商店的链接.)

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

推荐答案

是的.您无法离线获取 appstore 应用 ID(在 iTunes Connect 中称为 Apple ID),但您可以使用 iTunes Search Api请求.下载以下链接的上下文:

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

您将获得一个 JSON 响应,其中包含 "trackId":YOUR_APP_ID 键值.在浏览器中试试吧!

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

我的回答基于另一个答案: https://stackoverflow.com/a/11626157/3050403

这篇关于是否可以通过编程方式从 iOS 应用程序获取应用程序 ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆