Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IONIC1][ANDROID][CORDOVA] Add intent value to startApp.start #123

Open
sangle1096 opened this issue Dec 5, 2018 · 2 comments
Open

[IONIC1][ANDROID][CORDOVA] Add intent value to startApp.start #123

sangle1096 opened this issue Dec 5, 2018 · 2 comments

Comments

@sangle1096
Copy link

sangle1096 commented Dec 5, 2018

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.

@sangle1096 sangle1096 changed the title Add intent value to startApp.start [IONIC1][ANDROID][CORDOVA]Add intent value to startApp.start Dec 5, 2018
@sangle1096 sangle1096 changed the title [IONIC1][ANDROID][CORDOVA]Add intent value to startApp.start [IONIC1][ANDROID][CORDOVA] Add intent value to startApp.start Dec 5, 2018
@pankajkumar99
Copy link

Any updates on how to pass parameters to another android app.

@lampaa lampaa added the Ionic label Aug 13, 2019
@spycedev
Copy link

Any luck with this? running into the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants