Rate the app android

Android Rate App using Google In-App Review API

Once your app is live on playstore, app rating and reviews are very crusical factors to drive more downloads. To achive this, we usually ask users to rate the app by showing a dialog with couple of buttons and redirecting them to playstore. With this user experience, there are chances that user might not come back to our app once redirected to playstore. Also a novice user finds it difficult to rate the app on playstore.

Luckly google provided an API called In-App Review to show the rating widget in the app itself without user leaving the app.

The In-App Review is part of play core library. Once the widget is integrated, we can see the rating widget displayed in the same app in a bottom sheet.

Pointers on In-App Review API

  • In-app review works only on android devices running Android 5.0 (API level 21) or higher that have the Google Play Store installed.
  • The in-app review API is subject to quotas. The API decides how often the review widget should be shown to user. We shouldn’t call this API frequently as once user quota is reached, the widget won’t be shown to user which can break the user experience. You can read more about Quotas here.
  • The review flow will be controlled by API itself. We shouldn’t try to alter the design or place approrpiate content on top of the widget. You can read more about Design Guidelines here
  • The review flow doesn’t indicate whether user has reviewed the app or not, even it won’t tell us whether the widget has shown to user or not.

Integrating In-App Review API

Integrating In-App review is very simple. It can be achived with very minimal code. Let’s see how to integrate it.

1. The In-App review API is part of Play Core API, so you have to include the library in your app’s build.gradle. Here I am adding material library as well as I want to show fallback rating dialog if there is any error in in-app review API.

2. The next step is creating the instance of ReviewManager interface. This class provides necessary methods to start the review flow.

  • Once the new instance is created, we need to call requestReviewFlow() task which returns the ReviewInfo object upon on successful completion.
  • Using the ReviewInfo object, we need to call launchReviewFlow() method to start the review flow.
  • For some reason, if the requestReviewFlow fails, we can launch the usual Rate App dialog that redirects user to playstore app.
  • Below, showRateApp() method starts the in-app review flow. The showRateAppFallbackDialog() method acts as fallback method if requestReviewFlow throws an error. This fallback method shows usual material dialog with three buttons to redirect user to playstore app.

Here is the complete code required for in-app review flow.

Testing In-App Review Flow

To test the in-app review flow, you should have the app approved already on PlayStore. This doesn’t mean the app should be available to public. At least you should have the account ready for Internal Testing or Internal App Sharing.

  • You can use Internal Test Track to release the app and test the in-app review flow.
  • You can use Internal App Sharing to test the in-app review flow.
Читайте также:  Андроид расстояние при беге

You can find more info on testing part on android developer page. If you have any queries, please let me know in the comments section below.

Cheers!
Happy Coding 😀

Hi there! I am Founder at androidhive and programming enthusiast. My skills includes Android, iOS, PHP, Ruby on Rails and lot more. If you have any idea that you would want me to develop? Let’s talk: [email protected]

Источник

Rate the app android

Android-RateThisApp is an library to show «Rate this app» dialog.

The library monitors the following status

  • How many times is the app launched
  • How long days does it take from the app installation

and show a dialog to engage users to rate the app in Google Play.

NOTICE: From 1.0.0, group ID has been changed from com.kobakei to io.github.kobakei .

Call RateThisApp.onCreate(Context) and RateThisApp.showRateDialogIfNeeded(Context) in your launcher activity’s onCreate() method.

That’s all! You can see «Rate this app» dialog at an appropriate timing.

In default, the dialog will be shown when any of the following conditions is satisfied.

  • App is launched more than 10 times
  • App is launched more than 7 days later than installation.

If you want to use your own condition, please call RateThisApp.init(Configuration) in your Application or launcher activity onCreate method.

You can override title, message and button labels.

In default, rate button navigates to the application page on Google Play. You can override this url as below.

Opt out from your code

If you want to stop showing the rate dialog, use this method in your code.

You can receive yes/no/cancel button click events.

Contribute this project

If you want to contribute this project, please send pull request. In present, I need contributors who can translate resources from English/Japanese into other languages.

Источник

Top 5: Best Rate My App Dialog Widgets For Android

See our review from 5 of the Best Rate My App Dialog Widgets For Android.

Every developer loves to have some attention . at least not personally, but for our code. As a mobile developer, you would like to promote the rating of your application. Normally an user will ignore the request of rating your application on the Play Store a lot of times, but if you are persistent enough, you may succeed.

In this top, we will share with you 5 of the most useful components for android to implement a call-to-action dialog to rate your application on the Play Store.

5. Rating Request

RatingRequest library is a simple android dialog for request rating and review. Displaying the dialog is so easy as using the following code:

4. Android Rate

AndroidRate is a library to help you promote your Android app by prompting users to rate the app after using it for a few days. Project based on Android-Rate by Shintaro Katafuchi. Default options of the Rate Dialog are as below:

  1. Google Play launches when you press the positive button. Change via AppRate#setStoreType(int) , AppRate#setStoreType(int, long) , AppRate#setStoreType(String. ) or AppRate#setStoreType(Intent. ) .
  2. App is launched 10 or more days later than installation. Change via AppRate#setTimeToWait(long, short) or AppRate#setInstallDays(byte) .
  3. App is launched 10 or more times. Change via AppRate#setLaunchTimes(byte) .
  4. App is launched 1 or more days after neutral button clicked. Change via AppRate#setRemindTimeToWait(long, short) or AppRate#setRemindInterval(byte) .
  5. App is launched 0 or more times after neutral button clicked. Change via AppRate#setRemindLaunchesNumber(byte) .
  6. Each launch (the condition is satisfied if appLaunches % param == 0). Change via AppRate#setSelectedAppLaunches(byte) .
  7. App shows the Neutral button («Remind me later»). Change via setShowLaterButton(boolean) .
  8. Unlimited occurrences of the display of the Rate Dialog within a 365-day period. Change via AppRate#set365DayPeriodMaxNumberDialogLaunchTimes(short) .
  9. Don’t re-enable the Rate Dialog if a new version of app with different version code is installed. Change via AppRate#setVersionCodeCheck(boolean) .
  10. Don’t re-enable the Rate Dialog if a new version of app with different version name is installed. Change via AppRate#setVersionNameCheck(boolean) .
  11. Setting AppRate#setDebug(boolean) to true ensures that the Rate Dialog will be shown each time the app is launched. This feature is for development only!.
  12. There is no default callback when the button of Rate Dialog is pressed. Change via AppRate.with(this).setOnClickButtonListener(OnClickButtonListener) .
Читайте также:  Метроном для бега андроид

3. Android RateThisApp

The library monitors the following status:

  • How many times is the app launched
  • How long days does it take from the app installation

and show a dialog to engage users to rate the app in Google Play. In default, the dialog will be shown when any of the following conditions is satisfied.

  • App is launched more than 10 times
  • App is launched more than 7 days later than installation.

If you want to use your own condition, please call RateThisApp.init(Configuration) in your Application or launcher activity onCreate method.

2. Gene-rate

Generate a better rating for your Android app! It is easy to present your users with a dialog begging for a 5-star rating, but it takes a bit more attention to do it right. This small library takes away the boiler plate and makes it easy to ask for a rating the friendly way.

1. Smart App Rate

  • Auto fetches the app icon to appear on top of the dialog
  • Make the dialog appear on a defined app session
  • Opens Feedback form if the user rates below the minimum threshold
  • Extracts the accent color from your app’s theme
  • Customizable title, positive button and negative button texts
  • Customizable button colors and backgrounds
  • Override dialog redirection to Google Play or Feedback form according to your needs

If you want the dialog to appear on the Nth session of the app, just add the session(N) to the dialog builder method and move the code to the onCreate() method of your Activity class. The dialog will appear when the app is opened for the Nth time.

Honorable mentions

AndroidMaterialAppRating

This library allows to use customized Rating Dialog inside applications.

  • custom styles for dialog’s background, stars, title, description, hint
  • custom rating scope (number of stars)
  • note descriptions below rating bar, which describes each note
  • defining custom dialog’s title, description and hint
  • defining text for positive, negative and neutral button
  • enter/exit window animation

If you know another awesome library for android to implement a rate my app widget, please share it with the community in the comment box.

Источник

Rate the app android

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.

Читайте также:  Android viewpager wrap content

You can download from maven central.

Android-Rate provides methods to configure its behavior.

The default conditions to show rate dialog is as below:

  1. App is launched more than 10 days later than installation. Change via AppRate#setInstallDays(int) .
  2. App is launched more than 10 times. Change via AppRate#setLaunchTimes(int) .
  3. App is launched more than 2 days after neutral button clicked. Change via AppRate#setRemindInterval(int) .
  4. App shows neutral dialog(Remind me later) by default. Change via setShowLaterButton(boolean) .
  5. To specify the callback when the button is pressed. The same value as the second argument of DialogInterface.OnClickListener#onClick will be passed in the argument of onClickButton .
  6. Setting AppRate#setDebug(boolean) will ensure that the rating request is shown each time the app is launched. This feature is only development!.

Clear show dialog flag

When you want to show the dialog again, call AppRate#clearAgreeShowDialog() .

When the button presses on

Set custom view

If you want to use your own dialog labels, override string xml resources on your application.

Android-Rate currently supports the following languages:

  • English
  • Czech
  • German
  • Spanish
  • Basque
  • Persian
  • French
  • Italy
  • Hebrew
  • Japanese
  • Korean
  • Polish
  • Portuguese
  • Russian
  • Turkish
  • Ukrainian
  • Vietnamese
  • Chinese

Android-Rate supports API level 9 and up.

Please try to move the sample.

  1. Fork it
  2. Create your feature branch ( git checkout -b my-new-feature )
  3. Commit your changes ( git commit -am ‘Added some feature’ )
  4. Push to the branch ( git push origin my-new-feature )
  5. Create new Pull Request

About

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.

Источник

Rate the app android

Smart app rate dialog for Android which takes user rating into consideration. If the user rates the app below the defined threshold rating, the dialog will change into a feedback form. Otherwise, It will take the user to the Google PlayStore.

  • Auto fetches the app icon to appear on top of the dialog
  • Make the dialog appear on a defined app session
  • Opens Feedback form if the user rates below the minimum threshold
  • Extracts the accent color from your app’s theme
  • Customizable title, positive button and negative button texts
  • Customizable button colors and backgrounds
  • Override dialog redirection to Google Play or Feedback form according to your needs

If you want the dialog to appear on the Nth session of the app, just add the session(N) to the dialog builder method and move the code to the onCreate() method of your Activity class. The dialog will appear when the app is opened for the Nth time.

Use the dialog as it is

or use the dialog builder class to customize the rating dialog to match your app’s UI.

  • Don’t use session() if you want to show the dialog on a click event.
  • Remove the threshold() from the builder if you don’t want to show the feedback form to the user.
  • Use onThresholdCleared() to override the default redirection to Google Play.
  • Use onThresholdFailed() to show your custom feedback form.

Add it as a dependency in your app’s build.gradle file

This project was initiated by Code My Brains Out. You can contribute to this project by submitting issues or/and by forking this repo and sending a pull request.

Источник

Оцените статью