Is there a way to do that? I would hate it to hard-code the app ID somewhere...
+2
A:
No way to do this. I think you are probably trying to link to your product page right? Try the link method using your name of your app
http://itunes.com/apps/<YOUR APP NAME>
coneybeare
2010-07-10 11:57:12
I tried it and it works; this is the easier, elegant solution, and probably the only one `:-)`. Now, dontWatchMyProfile should enlighten us about what he really mean. `:-)`
kiamlaluno
2010-07-10 12:06:32
+1
A:
If you mean your com.whatever.whatever identification:
NSString *myAppID = [[NSBundle mainBundle] bundleIdentifier];
If you mean your iTunes 123456789 identification, it's not available to you at runtime, but is given to you on iTunes Connect and can be manually inserted into your app from there.
Jonathan Grynspan
2010-07-10 15:40:49
The iTunes identification number is what he probably means. You are right. There is no way to do this at runtime (file a radar -- it should not be hard considering the iPhoneOS device DOES know this info in order to do updates for itself).
Jann
2010-07-10 22:45:35