简体   繁体   English

如何检测在中国下载的应用程序?

[英]How do I detect an app has been downloaded in China?

I am looking for a reliable mechanism to find out if my application has been downloaded in China. 我正在寻找一种可靠的机制来确定我的应用程序是否已在中国下载。 What are my options? 我有什么选择?

There is an appStoreReceiptURL method on NSBundle which points to a DER encoded receipt file. NSBundle上有一个appStoreReceiptURL方法,该方法指向DER编码的收据文件。 I understand this receipt may also contain the country of the App Store where it was downloaded. 我了解此收据可能还会包含下载该收据的App Store所在的国家/地区。 Does anyone know how reliable that information is? 有谁知道该信息的可靠性吗?

Are there other options? 还有其他选择吗?

For iPhones you can use this 对于iPhone,您可以使用此

CTTelephonyNetworkInfo *network_Info = [CTTelephonyNetworkInfo new];
CTCarrier *carrier = network_Info.subscriberCellularProvider;

NSLog(@"country code is: %@", carrier.mobileCountryCode);

//will return the actual country code
NSLog(@"country code is: %@", carrier.isoCountryCode);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我有什么方法可以检测我的应用是否已通过Installous下载? - I there any way to detect if my app has been downloaded with Installous? 检测是否已从集成的应用商店IOS下载应用 - Detect if app has been downloaded from integrated app store IOS 如何在不检查SignerIdentity的情况下检测应用程序是否已被破解? - How do I detect if an app has been cracked without examining the SignerIdentity? 如何检测股票音乐应用程序是否已终止? - How can I detect if the stock music app has been terminated? 流星-如何检测应用程序是否已打开? - Meteor - How can I detect if an app has been opened? 如何检测对象是否已在Sprite Kit中刷过 - How do I detect if object has been swiped in sprite kit iOS:如何检测电子邮件是否已成功发送? - iOS: How do I detect if an email has been successfully sent? 如何在运行时检测到已加载框架? - How do I detect, at runtime, that a framework has been loaded? 如何仅在中国启动iOS iPhone应用程序? - How do I launch my iOS iPhone app only in China? 在“保存到相机胶卷”期间,如何确定已下载了多少? - During Save to Camera Roll, how do I determine how much has been downloaded?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM