android-browser-helper
android-browser-helper copied to clipboard
Notifications don't work in background
Tried using the TWA on Android 12 and Android 13. Not getting notifications when the app is in the background. But getting it when app is in foreground.
That's very weird - do you know what browser the TWA is running on? You don't have any focus mode/apps that could kill things in the background? Can you get notifications for your default browser when that's in the background?
Browser - Chrome
I don't have any focus mode/apps that could kill things in the background. In fact i tried on different mobiles. sometimes it works sometimes it doesn't. Sometimes, I get notifications when my app is closed but after few hours notifications don't show up unitil I open the app.
I tried using it as PWA, looks like it also has same issue.
Implement a service worker to handle the notifications while in the background.