How to get AppID on iPhone using SDK/programmatically?

http, iphone, request

Solution

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"];

Problem

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`?

Original source