Rate This App -link in Google Play store app on the phone
I open the Play Store from my App with the following code:
val uri: Uri = Uri.parse("market://details?id=$packageName")
val goToMarket = Intent(Intent.ACTION_VIEW, uri)
// To count with Play market backstack, After pressing back button,
// to taken back to our application, we need to add following flags to intent.
goToMarket.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY or
Intent.FLAG_ACTIVITY_NEW_DOCUMENT or
Intent.FLAG_ACTIVITY_MULTIPLE_TASK)
try {
startActivity(goToMarket)
} catch (e: ActivityNotFoundException) {
startActivity(Intent(Intent.ACTION_VIEW,
Uri.parse("http://play.google.com/store/apps/details?id=$packageName")))
}
Option 2:
is to use resolveActivity instead of try..catch
if (sendIntent.resolveActivity(getPackageManager()) != null) {
startActivity(chooser);
} else {
openUrl();
}
Direct link to write an app review in Google Play Store
As far as I know, Android doesn't have a similar option.
However, Android supports reviewing within your application with in-app reviews.
how to add Rate The App link in Google Play store app (jetpack compose)
Call this method inside the onClick of your button.
fun openPlayStore(activityContext: Context, appURL: String) {
val playIntent: Intent = Intent().apply {
action = Intent.ACTION_VIEW
data = Uri.parse(appURL)
}
try {
activityContext.startActivity(playIntent)
} catch (e: Exception) {
// handle the exception
}
}
You should pass activity context (not application context).
Rate Google Play application directly in app
The rating is done through market app so that ratings can be trusted. If apps were allowed to handle the rating themselves, then the developer could manipulate the app's rating any time. So there is no way you can handle the rating yourself. You can only prompt the user to your app page on Google Play and ask them to rate your app for more support.
Use the built-in intent to launch market
private void launchMarket() {
Uri uri = Uri.parse("market://details?id=" + getPackageName());
Intent myAppLinkToMarket = new Intent(Intent.ACTION_VIEW, uri);
try {
startActivity(myAppLinkToMarket);
} catch (ActivityNotFoundException e) {
Toast.makeText(this, " unable to find market app", Toast.LENGTH_LONG).show();
}
}
Rate this app google play store link in Ionic app
Why not use this plugin: https://github.com/pushandplay/cordova-plugin-apprate
I use it with success like this :
AppRate.preferences.useLanguage = cfg.useLanguage;
AppRate.preferences.storeAppURL.ios = cfg.appStoreAppURL.ios;
AppRate.preferences.storeAppURL.android = cfg.appStoreAppURL.android;
AppRate.preferences.customLocale = cfg.customLocale;
AppRate.preferences.displayAppName = cfg.displayAppName;
AppRate.preferences.usesUntilPrompt = cfg.usesUntilPrompt;
AppRate.preferences.promptAgainForEachNewVersion = false;
AppRate.promptForRating();
Related Topics
Android - Java.Lang.Securityexception: Permission Denial: Starting Intent
Connecting to MySQL from Android with Jdbc
No Resource Found - Theme.Appcompat.Light.Darkactionbar
Take a Screenshot of a Whole View
How Did Google Manage to Do This? Slide Actionbar in Android Application
Push Notifications When App Is Closed
Android - Storing/Retrieving Strings with Shared Preferences
How to Send Data from One Fragment to Another Fragment
How to Determine If a Firebase User Is Signed in Using Facebook Authentication
Meaning of Choreographer Messages in Logcat
Webview Load Website When Online, Load Local File When Offline
How to Calculate Distance Between Two Locations Using Their Longitude and Latitude Value
Call Removeview() on the Child's Parent First
Unable Instantiate Android.Gms.Maps.Mapfragment
How to Add a Button to Preferencescreen
Android, Canvas: How to Clear (Delete Contents Of) a Canvas (= Bitmaps), Living in a Surfaceview