nchutchind / cordova-plugin-app-launcher

Simple Cordova plugin for launching apps.
MIT License
88 stars 92 forks source link

App not launching in ios #9

Closed anr2411 closed 7 years ago

anr2411 commented 7 years ago

I am trying to launch one app from another app. But it's not working in ios.

I have two apps 'A' and 'B'. Url scheme of app 'B' is ' xyz '. If I used Url scheme of app 'B' in safari then it opens that app. But when I try to do it from app 'A' using following method, it gives error of app not being installed:

window.plugins.launcher.launch({uri:"xyz://"}, function(json){//alert("Success : "+ json) }, function(err){alert("Install App.")});

I would like to know what I am doing wrong in this.

mrmasterix commented 7 years ago

@anr2411, what is your iOS version?

anr2411 commented 7 years ago

@mrmasterix, iOS version is 9.3.3

anr2411 commented 7 years ago

@mrmasterix any updates?

mrmasterix commented 7 years ago

@anr2411, unfortunately not. Waiting for solution from plugin's author

anr2411 commented 7 years ago

Solution:

  1. Add this in config.xml of your app: <allow-navigation href="customSchemeName://*/*" />

  2. Add this in platforms/ios//-Info.plist

    <key>LSApplicationQueriesSchemes</key> <array> <string>customSchemeName</string> </array>