Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Link to my Apps in AppStore in Phonegap

I want to add link to my other apps in App Store from Phoengap app.

I tried open in webview this URL:

http://itunes.com/apps/bjango

By this article http://bjango.com/articles/ituneslinks/

But not working for me. Child browser window is opened, but nothing is shown on display.

How to do it correctly?

Many thanks for any help.

like image 653
redrom Avatar asked Oct 01 '12 08:10

redrom


3 Answers

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>
like image 130
confile Avatar answered Oct 16 '22 13:10

confile


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.

like image 30
codemonkey Avatar answered Oct 16 '22 14:10

codemonkey


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

like image 38
Dionys Lucifer Avatar answered Oct 16 '22 15:10

Dionys Lucifer