Link to my Apps in AppStore in Phonegap

六眼飞鱼酱① 提交于 2019-12-04 01:25:15

Change the URL that you are opening so that it is in this format

itms-apps://itunes.com/apps/<yourappdevelopername>

Replace <yourappdevelopername> with the developer name that you have registered with Apple.

Here is the correct way to link to the App Store in PhoneGap:

<a href="itms-apps://itunes.apple.com/app/id<app apple id>">To App Store</a>

And for Android:

<a href="market://details?id=<bundle id>">To Google Play Store</a>

Even tho this is an old thread... Mike has been asking if there's a way to detect whether we're on iOS or Android platform.

In Phonegap/Cordova you can call

device.platform

which will, for example, return the value

iOS

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!