I want to send the AppID as a HTTP URL parameter for all web-service requests, but I do not know how to get the AppID on iPhone programmatically.
Does Apple provide any API to obtain the AppID?
An iOS application's store ID number can be found in the iTunes store URL as the string of numbers directly after id . For Example, in https://itunes.apple.com/us/app/urbanspoon/id284708449 the ID is: 284708449 .
Visiting Apple's Developer Website Click Account and sign in with the Apple ID that's linked to your developer account. On the left, select Certificates, IDs & Profiles. From the menu on the left, choose App IDs and look for the App ID Xcode created for us.
An App ID is a two-part string used to identify one or more apps from a single development team. The string consists of a Team ID and a bundle ID search string, with a period ( . ) separating the two parts.
I think it may be possible to access it in a different way, but you should be able to read it from your info.plist:
NSString* appID = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"];
NSString *appID = [[NSBundle mainBundle] bundleIdentifier];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With