Yes, you can register phone numbers for both WhatsApp and SMS directly from your application using our React Native plugin.
First, ensure you have updated the pushwoosh-react-native-plugin to the latest version to access these features.
Use the following methods to register a number:
-
For WhatsApp:
Pushwoosh.registerWhatsappNumber(phoneNumber); -
For SMS:
Pushwoosh.registerSMSNumber(phoneNumber);
Important: The phoneNumber string must be a valid number in the E.164 format (e.g., "+1234567890"). The value cannot be null or empty.
You can find a complete usage example in our sample application on GitHub: https://github.com/Pushwoosh/pushwoosh-react-native-plugin/blob/master/example/demoapp/Actions.js
Comments
0 comments
Please sign in to leave a comment.