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

Nothing happens when I use sendDirect #19

Open
sabatsu opened this issue Dec 13, 2018 · 3 comments
Open

Nothing happens when I use sendDirect #19

sabatsu opened this issue Dec 13, 2018 · 3 comments

Comments

@sabatsu
Copy link

sabatsu commented Dec 13, 2018

When I use sendInDirect all goes well as documented.
But when I use sendDirect nothing happened. No error and no SMS sent.
Can you please let me know what it could be?
I added the SEND_SMS permission in the manifest...

@christ1512
Copy link

I like when I use sendDirect nothing happens, but it says error, only it does not say more information

@Ritu-Mathur
Copy link

I like when I use sendDirect nothing happens, but it says error, only it does not say more information

Check SMS permission in app info. In my case SMS permission is denied. Allow it first.

@Muhammad-Tayyab-com
Copy link

working fine on my end
SmsAndroid.sms(sender, body, "sendDirect", (err, message) => {
if (err) {
console.log("error");
ToastAndroid.show( ${err.message}, ToastAndroid.SHORT);
} else {
console.log("else block", message); // callback message
ToastAndroid.show( ${message}, ToastAndroid.SHORT);
}
});
make sure you have added permissions

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

No branches or pull requests

4 participants