1

How do I open the Huawei AppGallery that points to a specific app directly? I know that is possibile to do it natively in Android, but I need to do it with plain Javascript for a Cordova application

peterdest
  • 184
  • 1
  • 9
  • 1
    You can use JavaScript code to directly open the Huawei AppGallery. Please kindly refer to the following two posts: [POST 1](https://stackoverflow.com/questions/53705612/how-to-open-the-huawei-appgallery-directly/58343131#58343131); [POST 2](https://stackoverflow.com/questions/53705612/how-to-open-the-huawei-appgallery-directly/60641091#60641091) Hope it helps! – shirley Jan 08 '21 at 03:42

1 Answers1

0

You can refer to the following:

The typical link format of the application details page on Huawei AppGallery is: https://appgallery.cloud.huawei.com/appDetail?pkgName=**packagename**&channelId=**channelid**&referrer=**referrer**&detailType=0&calltype=AGDLINK

Parameter description:

Packagename: required, the package name to be popularized and applied, such as com.huawei.gamebox ..

Channelid: It is recommended to fill in. To improve the channel identification degree of data analysis, it is recommended to fill in the designated identification number for each channel. If it is not filled in, the system will automatically read the package name of the source media, but the package name cannot be obtained by jumping through the webpage or offline QR code.

Referrer: not required; if not, it will be blank by default. This parameter refers to the secondary channel number. When links are posted on multiple pages (scenes) of the same media, the specific location effect of the media can be identified by the secondary channel number.

DetailType=0&calltype=AGDLINK: basic parameter, which cannot be deleted.

for example: https://appgallery.cloud.huawei.com/appDetail?pkgName=com.huawei.gamebox&channelId=ceshi&referrer=01&detailType=0&calltype=AGDLINK

Minda
  • 1