views:

274

answers:

1

Hi All,

I want to send the AppID as a http URL parameter for all webservice requests, but I do not know how to get the AppID on iPhone programmatically. Does Apple provide any API to obtain the AppID?

Somebody please help.

~Neeraj

+2  A: 

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