This used to be a problem on SDK 38 but fixed (partially for me, only iOS) with SDK 39.
When the app is killed and the user opens it by tapping a push Notifications.addNotificationResponseReceivedListener does not respond.
This happens only on Android. I already tried to move the listener out of all components but still no lack.
I was doing just that on both Platforms but suddenly since SDK 38 I am having issues.
I cannot find that statement in the page you sent me. By the way, I am not handling something in the background, but actually trying to handle something once the App is open (by tapping a push).
It’s mentioned in the The SDK doesn't support all types of background code execution section.
So the app is open or is still active in the background when you tap on the notification? Or was the app inactive before and the notification triggers the app to open?
Did you specify "android": { "useNextNotificationsApi": true, ...} in the app.json?
Did you specify "android": { "useNextNotificationsApi": true, ...} in the app.json?
Yes, I did. It was working on SDK 37, it began having troubles with the new expo-notifications API in SDK 38 on both Platforms, and SDK 39 fixed only iOS (for me).
This only works if the app is active or was previously active/ is in the background and was not terminated.
If the app is was not started (or was killed) somewhen before you tap the notification it will not trigger my handleRemoteNotification function and only start the app. However this never worked on the previous SDKs for me and I’m quite certain that expo is not capable yet of doing this.
I’m sorry that I can’t help you then. But if you get it to work somehow please let me know cause I would love to have my notification handled when they were tapped in backgroudn