hotchemi / Android-Rate

Android-Rate is a library to help you promote your android app by prompting users to rate the app after using it for a few days.
http://hotchemi.github.io/Android-Rate
MIT License
724 stars 216 forks source link

Show rate app dialog everytime the application launches #122

Open pranishres opened 7 years ago

pranishres commented 7 years ago

Can someone please tell me how to show this rate app dialog everytime the app launches. I have set

AppRate.with(this).setInstallDays(0)
                .setLaunchTimes(0)
                .setRemindInterval(1) // default 1

but its not working

vo55 commented 7 years ago

Alternatively try: AppRate.with(this).showRateDialog(this) in your OnCreate

AlexanderLS commented 6 years ago

@pranishres @philipbarwi In Vorlonsoft/AndroidRate release 1.1.7:

Every time unless user click RateIt button or click Never button

@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);

  AppRate.with(this)
      .setInstallDays((byte) 0)           // default 10, 0 means install day
      .setLaunchTimes((byte) 0)           // default 10
      .setRemindInterval((byte) 0)        // default 1
      .monitor();

  AppRate.showRateDialogIfMeetsConditions(this);
}

Every time

@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);

  AppRate.with(this).showRateDialog(this);
}