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
Post a Comment