react-native-batch-push icon indicating copy to clipboard operation
react-native-batch-push copied to clipboard

[Android] Opt-in has no effect after using setAndroidNotificationTypes

Open mercure84 opened this issue 4 years ago • 0 comments

Hello,

I'm using the sdk batch 1.17.2 and @bam.tech/react-native-batch versions 5.2.1

I noticed I'm not able to optin after using the command setAndroidNotificationTypes + disable / enable notifications in the app properties (Android OS Side).

BatchPush.setAndroidNotificationTypes([AndroidNotificationTypes.NONE]) (my problem exists by Android only, iOS works fine).

  1. I fresh install my app ==> I'm optin by default
  2. I receive some pushes, I use setAndroidNotificationTypes
  3. I disable notifications in my OS properties ==> after relaunching the app, I'm opt out.
  4. I re-enable notifications in my OS properties ==> after relaunching the app, I still opt out.
  5. I have to clean the app to be optin again.

Is there a way to handle this issue ?

mercure84 avatar Jul 11 '22 20:07 mercure84