kobakei / Android-RateThisApp

Android library to show "Rate this app" dialog
Apache License 2.0
548 stars 163 forks source link

Rate this app dialog not working #102

Open ghost opened 6 years ago

ghost commented 6 years ago

I had incorporated the rate this app dialog box into my app last year. It was working perfectly for sometimes but later it stopped showing the rate this dialog box. Any idea what can be the reasons for this.

I was using the following condition in oncreate method ;

// Custom condition: 3 days and 5 launches RateThisApp.Config config = new RateThisApp.Config(3, 5); RateThisApp.init(config);

Do we need to use the following in Oncreate method;

RateThisApp.onCreate(this);

mourjan commented 6 years ago

I had the same problem after forgetting to include RateThisApp.onCreate(this);

and after you need to call this in onresume or onpostresume RateThisApp.showRateDialogIfNeeded(this);

jewom commented 5 years ago

thanks @mourjan , it's working now!