Shane K wrote:
@Gav GMTDev Does apple catch links like android does? Like you mentioned in a previous post that android catches the link and offers to open in google play but does apple do the same? So will apple open itunes if i open an itunes link in the browser because i believe that you can only rate an app through itunes app store?? is there a specific link to rate an app? If there is where can i find it?
Yes it does. I just open my URL, same as in a browser: “https://itunes.apple.com/ca/app/arrow-mania-free/id534574804?mt=8”. Needs to be done in ObjC, I have a sample app with call ObjC here: http://www.gmtdev.com/blog/2012/04/18/calling-ios-obj-c-from-cocos2d-x-and-more/
Download that and add this function:
bool ObjCCalls::OpenURL(const char *url)
return [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithCString:url encoding:NSUTF8StringEncoding]]];
And from your app just call your app store URL like:
Note, there are old things on the net saying to use URLs in the scheme of “http://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=534574804”…. but I find they don’t work anymore.