router99 Molly needs Unrestricted battery mode to do push. It requests that and you need to grant it for that to work properly.

This doesn't appear to be GrapheneOS specific:

https://www.reddit.com/r/signal/comments/170rxvo/android_14_pixel_7_pro_delayed_notifications/
https://www.reddit.com/r/GooglePixel/comments/170zxv6/android_14_delayed_notifications/

Not clear if it's an issue with these apps, Play services, FCM service or Android 14 but other users have the issue on the stock OS. It only appears to impact a small number of users with specific configurations, otherwise there would be more complaints.

3 months later

As of today, somehow my notifications are back to normal as far as I can tell. I don't know what triggered it, but happy to see it 😎

5 days later

I have a security (trail cam) using Ucon app to alert me when someone starts up my driveway. Running on both Pixel 5 and Pixel 6 with all notifications set correctly for app, battery settings correct, etc. and Display->Lock Screen->Wake for notifications set.

I get correct notifications if screen is on and for maybe 5 minutes after screen is off. After that, notifications are there but never wake the screen from sleep. As soon as I tap to wake the notifications are there. I even went into Developer Options and turned off Wi-Fi scan throttling and didn't help.

Notifications are instant (icon shows on status bar) when I wake from sleep, so the app is sending the notifications correctly.

Guess I spoke too soon. After phones sitting overnight, when the cam sent a push notification this morning it didn't wake up and notification sat waiting until I woke phone from sleep. SMS message notifications always show up. Tried running Wi-Fi on P6 and Cellular Data on P5.

Consistent notifications is pretty fundamental stuff. Really frustrating to not have these wake up the phone, even set to show on Lock Screen and wake lock screen.

  • de0u replied to this.

    The Ucon app uses several notification channels but the three main ones are Push, Misc, and System. Through testing by setting each to Urgent to get a popup toast it appears that the app is using Miscellaneous. Most of the time notifications arrive within 10 seconds after the camera trips from motion. Occasionally notifications are delayed 1-5 minutes (unacceptable for using the cam as security as someone tripping it at the bottom of my driveway would already be at the front door by the time I receive the alert.

    The issue is notifications are NOT waking the P6 from sleep after the screen has been locked for a period of time. I have tried the following settings and apps that specifically wake on notification:

    GrapheneOS - Display->Lock Screen: Wake screen for notifications
    Automate app - using 'Wakeup on notification' Flow
    aodNotify for Pixel app - (very cool notification LED simulation and AOD preview options) Wake Screen setting ON
    Glimpse Notifications app - set Lockscreen display time and Persistent notification set ON
    Wake Up Screen app - simple wake on notification

    In every single case, these all will wake from sleep and show notifications (depending on how they're configured) IF the P6 screen was locked within the last 5 to 10 minutes. Any longer than that, it never wakes up on notifications. When I tap to wake the notification icon is in the status bar waiting and I immediately get a notification sound and if set to Urgent, a popup toast. Adaptive Battery is off, uConn and these notification apps are not restricted by battery optimization. But something is happening after a certain sleep time to keep notifications from waking. Very frustrating, been at this for two whole days testing and trying all combination of options and settings still no joy.

    de0u People reviewing the camera (Sehmua H-10 and using the Ucon app) don't seen to be having notification issues and are happy with the results (using stock Android).

    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...

    • de0u replied to this.

      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?

        de0u Yes, Play Services is set to Unrestricted battery

        • de0u replied to this.

          skyking Does Ucon have special permissions? What happens if you disable Wi-Fi, or else disable the cellular connection?

            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.

            • de0u replied to this.

              skyking If your phone is asleep for 10+ minutes, does it wake for an SMS message or a phone call? Are you using a VPN?

                de0u Yes wakes for SMS. I run a VPN client on my ASUS router but have an exception for my mobiles to bypass VPN and go through router public IP. No client VPN on mobiles when using Cellular Data.

                • de0u replied to this.

                  skyking I'm afraid I'm out of ideas. You may need an expert.

                  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.

                    skyking Thanks for reporting back! Good to hear you found the problem.