Fix push not opening Android 12 #4162
Ticket(s) / Related Merge Requests
Summary of Changes
This fix was done in the native side of the react-native-notifications fork https://github.com/Minds/react-native-notifications/pull/8
It fixes the issues opening the app from a push notification and the notification information sent to JS (android 12)
A known issue is that tapping a push notification with the app opened in the background will restart the JS side of the app on Android 12. This is also an open issue in the original package, I spent many hours trying to solve it without luck.
Testing Considerations
This should be tested on different versions of Android (at least 12, 11)
Test 1
- Log with user
A
into the app - From the web, comment on a post of user
A
using the userB
- Tap on the push notification with the app closed
Test 2
- Log with user
A
into the app - From the web, comment on a post of user
A
using the userB
- Tap on the push notification with the app in the background
Regression Scope
This MR only change the behavior on Android push notifications
Platform Affected (web, mobile, etc)
Android
Developer Testing Completed
Tested on an Android 12 emulator and an Android 11 device
Edited by Martin Santangelo