-
Notifications
You must be signed in to change notification settings - Fork 165
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
If is passed something vars on success callback it is called everytime (also on error) #62
Comments
And that ’ s happened to me |
which platform, which version of cordova? can you also share some code pls? |
In last version of cordova on android 4. var error = function(id){ |
For android It is passing success even if the user cancels out and dose not sent SMS...i wrote a post on how to use this with ionic see code here i have tested it in Android 4.1 and 5 with 'INTENT' also without it. Does the success call back refer to sending of SMS or just that the SMS app has been passed the data? |
@pointdeveloper, please see #26. for (...) {
- sms.send(phoneNumber, message, options, success(id), error(id) );
+ sms.send(phoneNumber, message, options, success, error);
} You can't pass parameters to the |
Thanks |
If i pass something in the success callback it is called everytime also when there is an error.
example:
sms.send(data.phoneNumber, text, options, success(data), error );
success(data) is called also when there is an error...
The text was updated successfully, but these errors were encountered: