[IONIC1][ANDROID][CORDOVA] Add intent value to startApp.start
Opened this issue · 2 comments
Hi @lampaa This is my intent of App that i want to call:
"intent:#Intent;package=com.squareup;action=com.squareup.pos.action.CHARGE;S.com.squareup.pos.WEB_CALLBACK_URI=gorilladesksquareapi://;S.com.squareup.pos.CLIENT_ID=sq0idp-i1VJxZhAKLIdRDep0DPNXg;S.com.squareup.pos.API_VERSION=v2.0;i.com.squareup.pos.TOTAL_AMOUNT=136;S.com.squareup.pos.CURRENCY_CODE=USD;S.com.squareup.pos.TENDER_TYPES=com.squareup.pos.TENDER_CARD,com.squareup.pos.TENDER_CARD_ON_FILE,com.squareup.pos.TENDER_CASH,com.squareup.pos.TENDER_OTHER;end"
The issue is i dont know how to put parameter to startApp.start example like this:
var sApp = startApp.set({
"package": "com.squareup",
"intent": "com.squareup.pos.action.CHARGE",
}, {
"S.com.squareup.pos.API_VERSION": "v2.0"
});
sApp.start(function(success) {
console.log(success);
}, function(error) {
console.error(error);
});
This is actually call and open to Square App but not pass S.com.squareup.pos.API_VERSION
with value v2.0
to it. Please help me asap.
Any updates on how to pass parameters to another android app.
Any luck with this? running into the same issue