π§Native SMS/Email
Send sms and emails to engage users and boost conversions.

π§ Bubble.io Plugin
[Element] Natively - SMS/Email
Events:
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
Actions:
Send SMS - Displays native MessageComposeViewController
Subject
Recipient
Body
Send Email - Display native MailComposeViewController
Subject
Recipient
Body
π JavaScript SDK
NativelyMessage
const message = new NativelyMessage()
const send_sms_callback = function (resp) {
console.log(resp.status); // SENT/CANCELLED/FAILED/NOT_ALLOWED (Works only on iOS)
};
const send_email_callback = function (resp) {
console.log(resp.status); // SENT/CANCELLED/FAILED/NOT_ALLOWED/SAVED (Works only on iOS)
};
message.sendSMS(body, recipient, send_sms_callback);
message.sendEmail(subject, body, recipient, send_email_callback);
Last updated
Was this helpful?