javascript - launch other application in android/IOS devices with Cordova -


i try launch in cordova(phonegap) skype application on devices (android, ios, windows).

i have compiled following function, works on samsung galaxy tab 3 (android). on many other mobile devices does'nt work function. on iphone , ipad not.

the function:

    function launchskype() {     var scheme;      if (device.platform === 'ios') {         scheme = 'skype://';     } else if (device.platform === 'android') {         scheme = 'com.skype.raider';     } else if (device.platform === 'wp') {         scheme = 'skype:';     } else if (device.platform === 'windows8') {         scheme = 'skype:';     }      navigator.startapp.check(scheme, function(message) { /* success */         navigator.startapp.start(scheme, function(message) {         }, function(error) { /* error */             alert("skype not started!");         });     }, function(error) {         alert("skype not installed!");     }); } 

i no error messages. in cordova have installed following additional plugin : org.apache.cordova.device

com.lampa.startapp.startapp

could make suggestion, perhaps?


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -