jamesmontemagno / StoreReviewPlugin

Request app store reviews across Xamarin and Windows applications
MIT License
186 stars 24 forks source link

Support Huawei AppGallery for Reviews #48

Open JarJarBinkz opened 1 year ago

JarJarBinkz commented 1 year ago

Please add support for the Android Huawei AppGallery store.

So that these Android users can also give a rating.

Thanks a lot

saamerm commented 1 year ago

It seems like we would just need to create a PR with these changes If the PackageManager.GetInstallerPackageName() returns "com.huawei.appmarket" as shown here, https://stackoverflow.com/questions/68667149/detecting-if-application-is-installed-from-huawei-appgallery then we just need to pass this as the intent

val intent = Intent("com.huawei.appmarket.intent.action.guidecomment")
intent.setPackage("com.huawei.appmarket")
activityContext.startActivityForResult(intent, inAppReviewResultCode)

as shown here https://stackoverflow.com/questions/66990732/there-is-an-equivalent-of-in-app-review-for-huawei-services Is that something you want to do @JarJarBinkz ?

I wasn't able to find a different InAppReview support for Huawei though, just for the OpenStoreReviewPage()

JarJarBinkz commented 1 year ago

Hello @saamerm,

I will take a closer look. Testing will probably be a bit more difficult, as both source code snippets only work if the app has been downloaded from the AppGallery.

Found some interesting links.

A good description from Huawei itself for in-app comments: https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-comments-develop-0000001062858332

Description for testing: https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-betatest-introduction-0000001071477284

This could be interesting for the OpenStoreReviewPage(): https://forums.developer.huawei.com/forumPortal/en/topic/0203478067208130016