Is there any way for getting appstore id from running iOS application? (For asking user to rate it and providing link to appstore.)
For the appId only you need to separate the bundle identifier string by components and simply grab the last component.
NSString appId = [[[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"] componentsSeparatedByString:@"."] lastObject];
Or handle the full string accordingly but it will have the entire bundle identifier.