react-native-batch-push
react-native-batch-push copied to clipboard
[Android] Opt-in has no effect after using setAndroidNotificationTypes
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).
- I fresh install my app ==> I'm optin by default
- I receive some pushes, I use
setAndroidNotificationTypes - I disable notifications in my OS properties ==> after relaunching the app, I'm opt out.
- I re-enable notifications in my OS properties ==> after relaunching the app, I still opt out.
- I have to clean the app to be optin again.
Is there a way to handle this issue ?