📧
Native SMS/Email

- SMS action is not allowed [iOS] - Get called when user restricted sending SMS for other apps
- SMS sent [iOS] - successfully sent an SMS
- SMS sending failed [iOS]
- SMS sending cancelled [iOS] - Sending SMS screen was closed
- Email action is not allowed [iOS] - Get called when user restricted sending email for other apps
- Email sent [iOS] - successfully sent an Email
- Email sending failed [iOS]
- Email saved [iOS]
- Email sending cancelled [iOS] - Sending Email screen was closed
- Send SMS - Displays native MessageComposeViewController
- Subject
- Recipient
- Body
- Send Email - Display native MailComposeViewController
- Subject
- Recipient
- Body
1
const message = new NativelyMessage()
2
const send_sms_callback = function (resp) {
3
console.log(resp.status); // SENT/CANCELLED/FAILED/NOT_ALLOWED (Works only on iOS)
4
};
5
const send_email_callback = function (resp) {
6
console.log(resp.status); // SENT/CANCELLED/FAILED/NOT_ALLOWED/SAVED (Works only on iOS)
7
};
8
message.sendSMS(body, recipient, send_sms_callback);
9
message.sendEmail(subject, body, recipient, send_email_callback);
Last modified 9mo ago