Notifications in standalone version

I have implemented a notification handler by doing Notifications.addListener((notification) => { alert('hi'); }). This works when I test the app on Expo on both Android and IOS. However, after doing expo publish, this doesn’t work on the standalone app for IOS. The Notifications are received by iOS when the app is closed. Notifications are not seen when app is in the foreground/open, but I’m assuming they are received and automatically deleted since the app is already open. However, regardless, notification handler is not fired as I never see that alert. Why is that? How can I fix it?

On Android, it’s not storing the token. I’m using Notifications.getExpoPushTokenAsync(); and it only works for iOS. So, at the moment, Android phones are not even receiving notifications (in the standalone version).

Thank you

1 possible answer(s) on “Notifications in standalone version