Using "@hmscore/react-native-hms-push": "6.11.0-300"
, I have a utility in my app that opens notification settings, and user can enable/disable them.
The problem is that if
- a user has disabled notifications
- is sent a notification that is blocked
- then later re-enables notification
they still don't get notifications even though they should. If they weren't sent any blocked notification in step 2, the notifications work as normal.
If I follow an arcane set of reloads and restarts (not sure which ones work, and it seems random), the notifications are eventually enabled.
So is there a step I am missing that would enable the HMS notifications immediately after the permission is granted? I tried all combinations of manually triggering HmsPushMessaging.turnOnPush()
, notifee.requestPermission()
and HmsPushInstanceId.getToken('HCM')
but no dice. Any idea what's this all about, and how it can be fixed?