android-browser-helper icon indicating copy to clipboard operation
android-browser-helper copied to clipboard

Notifications don't work in background

Open onkar-rentomojo opened this issue 1 year ago • 3 comments

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.

onkar-rentomojo avatar Apr 11 '23 15:04 onkar-rentomojo

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?

PEConn avatar Apr 12 '23 08:04 PEConn

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.

onkar-rentomojo avatar Apr 12 '23 09:04 onkar-rentomojo

Implement a service worker to handle the notifications while in the background.

orpic avatar Sep 07 '23 14:09 orpic