Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get AppID on iPhone using SDK/programmatically?

Tags:

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?

like image 543
Neeraj Avatar asked Oct 19 '09 19:10

Neeraj


People also ask

How do I get my Iphone App ID?

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 .

Where is my Swift App ID?

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.

What is iOS App ID?

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.


2 Answers

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"];
like image 161
Jess Avatar answered Sep 27 '22 21:09

Jess


NSString *appID = [[NSBundle mainBundle] bundleIdentifier];
like image 25
Nick Snyder Avatar answered Sep 27 '22 20:09

Nick Snyder