React-native-onesignal: setSubscription(false) not working on android

Created on 16 Apr 2020  路  6Comments  路  Source: OneSignal/react-native-onesignal

image

I added these lines on logout:
OneSignal.setSubscription(false);
OneSignal.removeExternalUserId();
But I receive the notifications when I am logout. Where is the problem?

Help Wanted

All 6 comments

Is the subscription change reflected on our dashboard for that device?
What version of the react OneSignal SDK are you using?
How are you sending these notifications?

Is the subscription change reflected on our dashboard for that device?
What version of the react OneSignal SDK are you using?
How are you sending these notifications?

Hey @mikechoch,

  1. I sent the notification from OneSignal on testing device
  2. "react-native-onesignal": "^3.4.1",
  3. from 'Send To Test Device'

Can you please make sure you are using the latest npm module?

@rgomezp Yes, I have latest version. I will update react native onesignal at latest version.. I will come back with message after make this. Thanks for help

Any update? Would like to close this issue

I fixed this problem. Thanks!

Was this page helpful?
0 / 5 - 0 ratings