signalapp / Signal-Android

A private messenger for Android.
https://signal.org
GNU Affero General Public License v3.0
25.72k stars 6.17k forks source link

Messages not Received Until Android App is open in Foreground #10276

Closed hal88 closed 3 years ago

hal88 commented 3 years ago

Bug description

Messages are not received until the app is open in the foreground. Given this, I obviously no longer get signal notifications when messages arrive as they only arrive when I check for them.

Steps to reproduce

Actual result: No notifications. Messages not recieved until signal is open in the foreground. Expected result: Receipt of message and notification when Signal is not in the foreground.

I have tried to remove every single possible OS restriction on Signal, battery optimsation, background data, as well as on google play services. Starting by following all possible interpretations of the steps here https://support.signal.org/hc/en-us/articles/360007318711-Troubleshooting-Notifications. Searched this issue database and various other things on the web. Nothing I tried worked out. Willing to do whatever to help.

I tried updating to the beta. I've run out of ideas. I love signal and have used and recommended it to everyone and anyone for years. This issue is the first one that's making signal use a little difficult.

Device info

Time : 1607643798898 Manufacturer : Ulefone Model : Armor 9 Product : Armor_9_EEA Screen : 1080x2113, xxxhdpi (480), 60.00 hz Font Scale : 1.0 Android : 10 (root.20200605.114948, Armor 9_TF1_EEA_V01) ABIs : arm64-v8a, armeabi-v7a, armeabi Memory : 35M (60.64% free, 512M max) Memclass : 256 OS Host : root Censored : false Play Services : true FCM : true Locale : en_AU Linked Devices: true First Version : 740 App : Signal 5.0.1 (752, 7522) Package : org.thoughtcrime.securesms (doDiFGKPO1r)

Link to debug log

https://debuglogs.org/0bd3ed5684e2ae795c9f4f67059451c4bf54caf5b1b487a774d8b657a9a3064c

keraba commented 3 years ago

Duplicate of 10065, fwiw. I'm seeing it too, and experimenting with turning off battery optimization for the app.

hal88 commented 3 years ago

Screenshot_20201214-202653

Battery optimisation settings don't seem to be a viable fix for what I'm seeing.

MorNando commented 3 years ago

I can confirm this is happening on my brothers android phone. It’s unusable for him as we have a group chat and notifications come through for around 10 minutes when he opens signal app up.

hal88 commented 3 years ago

Don't kill my app results from an overnight test. 100% is healthy.

Screenshot_20201224-070134

hal88 commented 3 years ago

Manufacturer says:

"Dear friend, you can turn on the Dura speed.then you can put the apps you need to running in the background to the white list."

gabrivera commented 3 years ago

In case y'all have not read this official Signal support article, it may help! I can't test it since I sadly don't have an Android device, but my friends do! And I'll have them try it out, since we have basically gone back to WhatsApp 😕 because some of them weren't getting notifications.

Strangely, a friend of mine just got a notification from me. It's strange because he hadn't received a single notification/message from me ever since he installed Signal a couple of months ago. He used to have to open the app to see my messages. And now that he finally got a couple of those messages, neither of us know what happened! Anyway, I hope the article helps, and I'm glad I had a reason to post, since this is a massive issue for me. We (my friends and I) basically had to stop using this software because of this bug.

greyson-signal commented 3 years ago

Consolidating this into #8692

hal88 commented 3 years ago

Ulefone: """ok, we know the problems, the app of "signal"cannot received the notifications. Since Armor 9 is an Android 10 mobile phone, Signal is not compatible with the relevant version, so this will cause some software problems. this is the not the phone problems."""

MrTuffaha commented 3 years ago

@hal88 hope hope this help i do have an ulefone armor 9 and i think i finally made signal notification work

i assume you did the signal check list go to: 1- settings 2- smart settings 3- app blocker 4- find signal (in my case it was partially blocked) 5- disable all blocking for me i ended up dissabling app blocker all together, i will look to its functionality later

hal88 commented 3 years ago

@MrTuffaha Thank you kindly, this appears to be working well.

settings->smart assistant->app blocker and uncheck "boot blocker" "start blocker" "background blocker" "background cleanup"

Doing the same for "dontkillmyapp" got the score up to 100%.

How do we request to get this info on to the device specific portion of the signal check list for notifications? https://support.signal.org/hc/en-us/articles/360007318711-Troubleshooting-Notifications

This issue was closed by @greyson-signal as a duplicate, which it appears not to be? App Blocker settings are the fix for this issue in the Ulefone Armor 9.

So many places where android cripples things. "App blocker" was entirely new to me and I thought I'd been through all the settings.

hal88 commented 3 years ago

Created #10714 as an open issue. I hope that's the right thing to do.