OneSignal’s SMS feature allows you to create and send SMS easily to your users. To send SMS from OneSignal, you will need:
- An account with Twilio (SMS platform)
- Twilio SID and Auth Token to setup OneSignal
- Import Subscriber Phone numbers
From phone numbers: Phone numbers to send SMS from
Acquire From phone numbers on Twilio or use your phone numbers (but you can only send SMS within your country using your number).
For Twilio trial accounts (that is, if you have not upgraded your Twilio account), recipient phone numbers need to be registered on Twilio before they can receive SMS
For a new application, choose the SMS channel from the list of platforms.
To add SMS to an existing application, go to the Application Settings → Platform, choose the SMS channel from the list of platforms.
Enter the Twilio Account SID and Auth Token to allow OneSignal to fetch the From phone numbers and send SMS.
You can get these account details from your Twilio Account Dashboard.
Once the Twilio account is successfully verified, OneSignal will automatically fetch all the From phone numbers associated with your Twilio account.
You can choose a “default” phone number from your registered numbers to send SMS. You can also choose a different From phone number on the SMS creation page if you prefer to not use the default From Number.
Import SMS Subscribers
Before you send an SMS, you need to import your phone number subscribers to OneSignal. Learn more about the various ways you can import phone number subscribers here.
Test the Twilio-OneSignal configuration
With a verified Twilio account and From number list fetched, you can immediately start sending SMS to your audience using OneSignal. However, if you wish to first test if the Twilio-OneSignal integration is successful, you can use the Test Configuration step to verify. Simply enter a phone number and click on Send Test Message to get an automated test SMS on the phone number entered.
Updated a day ago