Rate my Application in iTunes within my Application in iPhone

空扰寡人 提交于 2019-12-02 22:16:44
PengOne

Here's my method; this goes straight to the App Store and to the Review/Rate page for my app:

- (IBAction)rateGame {
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=409954448"]];
}

Just change the id at the end (409954448) to the id for your app. Also, if you track the launch count or something, you can trigger this method after, say 12 launches to increase ratings. I added this in my update and in about 2 weeks it generated 5 ratings. Very useful.

NSURL* urlToMyApp = @"http://url.to.my/app/in/the/app/store";
[[UIApplication sharedApplication] openURL:urlToMyApp];

You can also use,

See link below, It will redirect you on app store app details page. StoreKit.framework not needed.

http://www.brianjcoleman.com/tutorial-how-to-add-write-a-review-rate-us-feature-to-your-app/

Notes :

  • If iOS >= 7 use, [[UIApplication sharedApplication]openURL:[NSURL URLWithString:[NSString stringWithFormat:@"itms-apps://itunes.apple.com/app/idYOUR_APP_ID"]]];

  • This will not work on simulator so don't test on Simulator :-)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!