You can associate a user's SMS or WhatsApp number with their profile directly from your website using the Web SDK.
Use the registerSmsNumber() and registerWhatsappNumber() API methods to capture these details. This will link the provided phone numbers to the user's device profile in Pushwoosh.
Here is an example of how to implement this:
Pushwoosh.push((api) => {
// Register SMS number
api.registerSmsNumber('+15551234567');
// Register WhatsApp number
api.registerWhatsappNumber('whatsapp:+15551234568');
});
Comments
0 comments
Please sign in to leave a comment.