简体   繁体   English

如何用Cordova打开华为AppGallery商店?

[英]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我知道在 Android 中本地执行它是可能的,但我需要使用普通 Javascript 来执行 Cordova 应用程序

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华为应用市场应用详情页面的典型链接格式为: 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..包名:必填,要推广应用的package名称,如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. Channelid :建议填写。为了提高数据分析的通道识别度,建议为每个通道填写指定的识别号。 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.如果不填写,系统会自动读取源媒体的package名称,但无法通过网页跳转或离线二维码获取package名称。

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. DetailType=0&calltype=AGDLINK:基本参数,不可删除。

for example: https://appgallery.cloud.huawei.com/appDetail?pkgName=com.huawei.gamebox&channelId=ceshi&referrer=01&detailType=0&calltype=AGDLINK例如: 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>我认为最短和最简单的方法是运行这个简单的链接: 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.不需要PackagenameChannelid和类似的东西,也不需要配置任何东西,rest 将由华为自动处理。

How to get YOUR_APP_ID?如何获取 YOUR_APP_ID?

  1. Go to Huawei App Gallery Go 到华为应用程序库
  2. Search for your app (eg WeChat )搜索您的应用程序(例如微信
  3. Copy the ID in the end of the link (eg https://appgallery.huawei.com/#/app/C5683 )复制链接末尾的ID(例如https://appgallery.huawei.com/#/app/C5683
  4. In this case the APP_ID for WeChat would be C5683在这种情况下,微信的 APP_ID 将是C5683
  5. So the Huawei app link for WeChat would be https://appgallery.cloud.huawei.com/ag/n/app/C5683所以微信的华为应用链接是https://appgallery.cloud.huawei.com/ag/n/app/C5683

Hope this helps!希望这可以帮助! Enjoy~欣赏~

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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