Closed AlanBird1999 closed 2 years ago
@AlanBird1999 Thanks for your question. logoutSms()
does not unsubscribe the subscription, it just prevents future updates from the device such as tags or other properties. In your case since you are using external_user_id
to target you can remove this value before logging out.
// You should await before calling logoutSMS() so the external id is remove before logout.
await OneSignal.removeExternalUserId();
await OneSignal.logoutSMS();
That is the functionality I was looking for, thanks!
Description: We have a chat system set up to send an sdk request to message each user with a given external ID each time they receive a message. When a user enables this feature we set their number with their external user ID using oneSignal.setSMSNumber('UsersNumber'), then when a user turns off this feature we call oneSignal.logoutSMS() so they will not receive any further sms messages. However after calling logoutSMS() the user can still receive sms messages and no change is reflected on the onesignal dashboard.
Environment
Installed through npm
Steps to reproduce issue: