Alert for reminding the user to rate the app

陌路散爱 提交于 2019-12-05 21:38:16
TomSwift

Check out my answer for this similar question. I provide two different links you can use for taking the user to the "rate this app" screen in the App Store.

Direct "rate in iTunes" link in my app?

I've used this: https://github.com/arashpayan/appirater. You can look at my fork as well for a specific mod I needed.

[EDIT: comment re NSUserDefaults]

I suggested this link because it is a full, working implementation of what you describe that is easily integrated into existing apps. I've used (and modified) it myself. NSUserDefaults is a general purpose mechanism for persisting app state. I agree with the others that it's a very useful thing to learn and use, it's just not a full answer to your question. If you choose to roll your own implementation of a rating system (nothing wrong with that) you will most likely use NSUserDefaults to store the relevant info.

Daniel Dickison

You can use NSUserDefaults to save the launch count (increment it in application:didFinishLaunchingWithOptions:), then save the user's choice another preference key. If the user says later, you could reset the counter back to zero.

I don't think there is a special rating link, but you can link to your app's specific App Store page. This was incorrect, as TomSwift points out; see Direct "rate in iTunes" link in my app?

I wrote a library for doing this with minimal effort on your part:

https://github.com/nicklockwood/iRate

I'd recommend using a library rather than rolling your own solution. It may seem like a simple problem but the library takes care of a whole bunch of extra stuff, like ensuring that the user is prompted for each new installed version, that they are reminded after a certain time if they decline, that they aren't prompted to go to the app store unless they have a network connection, etc.

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