This is a library to show an app rate prompt to the user according to following conditions,
User has installed the app for 5 days.
There has been 5 times the user used/opened the app.
If the user decides to rate later, the app would prompt again in 5 days.
Above mentioned dates are default values, you can customize as per your requirement once you initialize the library.
Supports Android 2.3 (Gingerbread) and upwards.
- Add the JitPack repository to your root build.gradle allprojects
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
- Add the dependency
dependencies {
implementation 'com.github.tharinduNA:appRate:3a82d59238'
}
- Initialization, add one of the following lines to your Main Activity's onResume method.
if you are good with default threashold values.
AppRateUtils.initRateApp(this);
AppRateUtils.initRateApp(this, DAYS_THRESHOLD, LAUCH_COUNT, REMIND_COUNT);
AppRateUtils.initRateApp(this, DAYS_THRESHOLD, LAUCH_COUNT, REMIND_COUNT, TITLE, MESSAGE, POSITIVE_BUTTON, NEGATIVE_BUTTON, NEUTRAL_BUTTON);
Please use our issue tracker to report any problems.
Copyright 2018 Tharindu Naveen Abeyratne
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.