Is there any way for getting appstore id from running iOS application? (For asking user to rate it and providing link to appstore.)
When you enter the Member Center on http://developer.apple.com, click you name on the top right and click on “View Account”. You will find your team ID under the Developer Account Summary. In order to support Universal Links, the Apple App ID will need to be included in your Bitly iOS app configuration.
An "App ID" is a unique identifier that iOS uses to allow your application to connect to the Apple Push Notification service, share keychain data between applications, and to communicate with external hardware accessories you wish to pair to your iOS application.
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.
Yes, it is. You can't get appstore app id (called Apple ID in iTunes Connect) offline, but you can request it using iTunes Search Api. Download the context of the following link:
http://itunes.apple.com/lookup?bundleId=YOUR_APP_BUNDLE_ID
You will get a JSON response, containing "trackId":YOUR_APP_ID
key-value. Try it in your browser!
My answer is based on the another answer: https://stackoverflow.com/a/11626157/3050403
Use
NSString* appID = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"];
Updating the answer with comment by @zaheer
Bundle.main.infoDictionary?["CFBundleIdentifier"] as? String
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