Search code examples
ioscordovaionic-frameworkinappbrowser

How to open iTunes link with ionic inappbrowser?


So I am using the following code to try and open an app from inside my ionic app.

$cordovaInAppBrowser.open('itms-apps://itunes.apple.com/us/app/pages/id333903271?mt=8', '_system', 'location=yes');

I am trying on an iPad Air2 as well as simulator and no matter what I do I cannot get anything to happen, I do not get a url not found just nothing, no app opens. I have console logs above and below so I know the event is firing and no errors are happening. Also note that if I change the URL to be a google play link and I build for android this works fine. Any ideas on what could be going on?


Solution

  • Issue was in how I was calling the event, for whatever reason when switching the string to double quotes it worked over single quotes. Plugin must be specific.