Push notifications delayed
Forgot to mention that sometimes notifications show up 10 minutes late. Not sure if it's the notification just arriving or the phone finally wakes up from a pending notification that's been sitting there.
Running the Automate 'Get all current notifications' flow, I pulled up the detail for a Ucon notification and it's using FCM. Perhaps the connection to FCM is getting closed in sleep? Throwing everything at the wall to see what sticks...
skyking Perhaps the connection to FCM is getting closed in sleep?
The GrapheneOS instructions for installing Play Services include:
You should give a battery optimization exception to Google Play services for features like push notifications to work properly in the background. It isn't needed for the other 2 apps.
Has that been done?
- Edited
de0u Nothing special. Tried running on WiFi alone and on Cellular Data alone, same result. Camera runs over cellular network (LTE) so maybe it's sending out the notification directly and Ucon just interfaces with the camera to change settings, see livestream, and download saved pics or videos. Not sure. Seems convoluted for cam to talk to Ucon on mobile then uCon sends out a notification via FCM only to come back to same mobile.
Ucon does not have a persistent setting and sending to background or quitting makes no difference in delayed notifications.
Thanks for the input - still troubleshooting...
Update: Issue resolved. After wasting 3 days on this it turned out to be a weak cellular data signal. Had only 1 bar using the SIM that came with the camera (30 days and 300Mb free) using Verizon network. I replaced it with a SIM from SpeedTalk (250Mb/mo for $5 using T-Mobile) that gets 2-3 bars. Now when the camera trips from motion I get a notification instantly even when the P6 has been sitting overnight.
- Edited
I’ve just switched from iOS to GrapheneOS a few days ago on Pixel 6a, and I’ve been facing the same problem since the beginning.
Today I’ve figured out that there is another notification settings here:
Settings > Apps > Special app access > Device & app notifications
Here the only allowed app was the Launcher. And the GPS was under the Not allowed header.
I’ve just allowed notification access for GPS as well, however I don’t know yet whether this will work. And I don’t know whether this will cause any security issues which we avoid from.
There are some detailed sub settings under this menu such as Real-time, Conversations (SMS etc), Notifications… And at the bottom, you can click on See all apps and choose the apps you want to activate for this settings.
dr_green Settings > Apps > Special app access > Device & app notifications
Unless you're using a different launcher or have a smart watch, you don't need to grant this permission to any apps.
There are a lot of variables to consider when it comes to notifications. Make sure Google Play Services has its battery usage set to unrestricted and that you have a reliable network connection.
Yes my release number is same as 2024040900. I don't know if it's too early to talk or not, but my problem seems to be solved today after I've changed the permission that I've mentioned above.
Maybe I should close that permission again and see if the notification delay problem occurs again.
I have no idea if it helps, but adding a widget could. E.g. Whatsapp and Telegram each have that feature, whatsapp has a single widget space thing that shows how many unread messages you have. I guess at least if your screen is on android will refresh these widgets and therefore get new messages. Again this is just my speculation.