https://kotlinlang.org logo
#android
Title
# android
a

Animesh

02/27/2019, 1:50 PM
In my app i want to implement feature to get App rating from users. But as per my need App rating should be asked in case of major app version upgrade. It should not be triggered for minor version upgrade. For example : Case 1: If previous version is 1.0 and new launched App version is 2.0 then it app should prompt for App rating. Case 2: If previous version is 1.0 and new launched version is 1.5 then it should not prompt for app rating. Just wondering is there any ready to use solution available for this implementation ?
google 3
a

Allan Wang

02/27/2019, 1:51 PM
There are libraries for app ratings. As for when you call it, it should be simple to parse your version code/version name to match your needs.
Eg you can compare your version code % 100 or whatever your offset is for major version, or compare the first int through version name
a

Animesh

02/27/2019, 2:27 PM
ok thanks