angularjs - Ionic App launch external android app? -


how launch external android app ionic application. want connect pos printer app printing bill. cordova-npm plugin printer can't work printer. install pos printer android application on tablet want integrate ionic app , pos printing app

install: cordova plugin add com.lampa.startapp

install: cordova plugin add https://github.com/lampaa/com.lampa.startapp.git

finally in ionic call external installed app:

$scope.printer = function () {

        navigator.startapp.start("com.example.possdkforandroid", function (message) {                 /* success */                 alert(" navigator called");                 alert(message);             },             function (error) { /* error */                 console.log(error);                 alert(error);             });     } 

Comments

Popular posts from this blog

SVG stroke-linecap doesn't work for circles in Firefox? -

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -