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

It don't working to open WhatsApp #136

Open
AbitCompany19 opened this issue Nov 2, 2019 · 0 comments
Open

It don't working to open WhatsApp #136

AbitCompany19 opened this issue Nov 2, 2019 · 0 comments

Comments

@AbitCompany19
Copy link

AbitCompany19 commented Nov 2, 2019

Hi,

I am trying to open a chat in WhatsApp from my application but it is not working.

This is the code I am using:

var sApp = startApp.set({
    "package": "com.whatsapp",
});

// check app for exists
sApp.check(function(values) {
    sApp.start();
}, function(error) { // not exists, open play market
    startApp.set({
        "action": "ACTION_VIEW",
        "type": "text/plain",
        "uri": "+513107163185"
    }, {
        "EXTRA_TEXT": "Text...",
        "chat": true
    }).start();
});

I appreciate any help.
Regards, Abit team!

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

2 participants