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.

                    3 months later

                    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.