hotchemi / Android-Rate

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.
http://hotchemi.github.io/Android-Rate
MIT License
720 stars 216 forks source link

Add the method so that developers can control their own jump market #126

Open lufuqiang opened 7 years ago

lufuqiang commented 7 years ago

Hi,As you know,China can't access google market,we have many app market,so,can you add a method so that developers can control their own jump market?

AlexanderLS commented 6 years ago

@lufuqiang In https://github.com/Vorlonsoft/AndroidRate (Release 1.1.6+) you can do it:

Appstores

You can use different app stores.

Chinese app stores

The first Chinese app store found on the user device will be used. The Library doesn't check the availability of your application on the app store.

AppRate.with(this).setStoreType(StoreType.CHINESESTORES); // 19 chinese app stores: 腾讯应用宝, 360手机助手,
// 小米应用商店, 华为应用商店, 百度手机助手, OPPO应用商店, 中兴应用商店, VIVO应用商店, 豌豆荚, PP手机助手, 安智应用商店,
// 91手机助手, 应用汇, QQ手机管家, 机锋应用市场, GO市场, 宇龙Coolpad应用商店, 联想应用商店, cool市场

Other store

AppRate.with(this).setStoreType(String); // Any other store,
                                         // String - an RFC 2396-compliant URI to your app
                                         // e. g. "https://otherstore.com/app?id=com.yourapp"
                                         // or "otherstore://apps/com.yourapp"

Сustom Intents

You can set custom action to the Rate button. For example, you want to open your custom RateActivity when the Rate button clicked.

AppRate.with(this).setStoreType(Intent[]); // Any custom intents, Intent[] - array of intents,
                                           // first will be executed (startActivity(intents[0])),
                                           // if first fails, second will be executed (startActivity(intents[1])), etc.