[英]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.