Implement Rate Us and More Apps link for Huawei App Gallery
Asked Answered
K

3

5

How can i implement Rate Us and More Apps in Unity for Huawei app gallery? I use this way for Google Play Store but i'm unable to find for Huawei.

Rate Us: Application.OpenURL ("market://details?id=package of game");

More Apps : Application.OpenURL ("market://search?q=pub:Turbo Game Studios");

Please help.

Kaye answered 3/3, 2020 at 11:6 Comment(3)
You need to open the Huawei App Gallery from code? https://mcmap.net/q/419992/-how-to-open-the-huawei-appgallery-directly . Try "appmarket://details?id=com.my.app"Karate
@pierre Thanks for your reply. I have implemented the "Rate US" as you guided. But what should i do for "More Apps" or to open developer account/open more by this developer programmatically ?Kaye
You can't - Huawei haven't implemented their intents to be so complicated.... Yet of course - Shows you your app and that is it. Maybe later they will catch up to Google's finer attention to detail.Karate
K
9

Huawei App Gallery uses its own scheme appmarket://

  • Scheme: appmarket://
  • Package: com.huawei.appmarket

vs. Google Play Store:

  • Scheme: market://
  • Package: com.android.vending

The functionality differs at this time of writing, HAG only supports basic app opening so you can only send an intent Uri like the following:

"appmarket://details?id=package.of.game"

Huawei will probably-eventually catch up with more functionalities like Google through intents as to allow other types of requests from external apps.

But as for now, only open your app package, that is it.

If you have the app gallery installed, and can manage to see all the apps from the developer, you can try and share it to find the link, and open that link in the users' browser, for instance (This is just an App link):

https://appgallery.cloud.huawei.com/marketshare/app/C100864605

Update


You can now open your app in Huawei App Gallery the same way as for Google, you will then choose between the two stores if you have both installed:

Works for all stores:

market://details?id=com.mypackage.name

Works for app gallery only:

appmarket://details?id=com.mypackage.name

market://com.huawei.appmarket.applink?appId=C100864605
Karate answered 13/3, 2020 at 4:2 Comment(4)
Note: This is not working as expected in Huawei P10 Pro. When using 'markets://', the AppGallery is opened, instead of Google Play Store.Wapentake
@Wapentake markets or market ? Thanks for letting know - This was just a demonstration to show the differences between Google Play scheme and App Gallery scheme. If you want to ensure you open the correct store, look at my answer here https://mcmap.net/q/419992/-how-to-open-the-huawei-appgallery-directlyKarate
@Karate , yes, market , it was my typo. Sorry. Anyhow - surely happy to share! ;)Wapentake
It seems Huawei App Gallery can now open the details page with the same URI that works for Google Play: "market://details?id=<applicationId>" I tried it out on AppGallery v11.1.2.304 with an applicationId that exists on both stores: adb shell am start -a "android.intent.action.VIEW" -d "market://details?id=busu.blackscreenbatterysaver"Irade
R
1

App rating on HUAWEI AppGallery can be implemented by redirecting to the app details page, on which the app rating function is provided.

Roxana answered 15/5, 2020 at 8:29 Comment(0)
M
0

From Huawei's documentation :

Method 1:by app ID

public void launchAppDetailsPage1() {
     Intent intent = new Intent("com.huawei.appmarket.appmarket.intent.action.AppDetail.withid");
     intent.setPackage("com.huawei.appmarket");
     intent.putExtra("appId", "C100170981");
     startActivity(intent);
}

Method 2:by package name

public void launchAppDetailsPage2() {
     Intent intent = new Intent("com.huawei.appmarket.intent.action.AppDetail");
     intent.setPackage("com.huawei.appmarket");
     intent.putExtra("APP_PACKAGENAME", "com.huawei.browser");
     startActivity(intent);
}
Macdonald answered 5/9, 2022 at 17:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.