简体   繁体   中英

How to open the Huawei AppGallery store with Cordova?

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

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

I think the shortest and easiest one would be running this simple link: https://appgallery.cloud.huawei.com/ag/n/app/ <YOUR_APP_ID>

No need Packagename , Channelid and stuffs like that and no need to config anything and the rest will handled by Huawei automatically.

How to get YOUR_APP_ID?

  1. Go to Huawei App Gallery
  2. Search for your app (eg WeChat )
  3. Copy the ID in the end of the link (eg https://appgallery.huawei.com/#/app/C5683 )
  4. In this case the APP_ID for WeChat would be C5683
  5. So the Huawei app link for WeChat would be https://appgallery.cloud.huawei.com/ag/n/app/C5683

Hope this helps! Enjoy~

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM