Hey guys,
I am on expo SDK 28 and have my app setup to use the Expo Push Notifications API. My app asks for permission on iOS, and does the permission request on Android which passes due to the install permission (I assume that it includes that by default because push notifications work on Android < 8.0). I save the token and send it to my server and push notifications are working for iOS, and Android version before Oreo. I have a channel set up on Oreo and I am sending notifications to that channel. When the app is open I receive the notifications like this:
{
"data": null,
"isMultiple": false,
"notificationId": 1440457566,
"origin": "received",
"remote": true,
}
So I am in-fact receiving push notifications on Android Oreo when my app is open. However, if the app is backgrounded or closed I receive nothing. I am seeing these push notifications in the app from the Notifications.addListener
function.
I am not exactly sure what is going on here to cause me to not receive notifications in background / app closed state, any ideas?
P.S. Also, why do I not get any of the other fields (title, body) on the in-app notification on Android Oreo?