Signal-android: How can i still receive messages when the Signal application is closed?

Created on 25 Jan 2017  路  22Comments  路  Source: signalapp/Signal-Android

I have:


Description:

I cannot really call it a bug, more of a question.

Steps to reproduce

  • Register a Signal account > Complete the registration
  • Register Signal on another device and complete the registration
  • Close the Signal application (with password enabled - but occurs also without password enabled)
  • Send messages to the device with the Signal application closed

Actual result: Well, like in the title, from what I've saw is that the messages are not received until the Signal application is opened. Is this the intended behavior? I mean I also have WhatsApp installed that can receive messages even when the application is closed from the task switcher. (it seems that it has a background process / service working, maybe this is why?)

Note that i have Notifications enabled, Background Data is not restricted, I have good Internet connection and using Android 5.1.1.

Expected result: Signal app should receive notifications / messages even when the application is closed.

Thanks

Device info:

Device: Asus Zenfone Go
Android version: 5.1.1
Signal version: 3.27.1

Most helpful comment

@kepler2 Have you checked the support article which @FeuRenard linked to?

After a quick search it seems like ZEN UI has some power saving modes that could affect this: https://www.asus.com/zentalk/thread-3135-1-1.html

All 22 comments

Signal should receive messages even when the app is "not open".

Does it always fail to notice incoming messages? Did you try rebooting your device?

@Trolldemorted I can reproduce easily by performing the following steps:

  1. Open phone A, enable 3g connectivity launch Signal.
  2. Open phone B, enable 3g connectivity, launch Signal.
  3. Send a message from phone A to phone B - observe that the messages are received without issues.
  4. Disable connectivity on phone B and close the application using the task switcher. (Also lock it in case you have password)
  5. Send a message from phone A to phone B.
  6. Enable connectivity on phone B.
  7. Do not open Signal on device B.

Observe that the messages are received on device B only after the Signal application is opened.

So basically, I need to open the app whenever I enable connectivity or else the messages are not received.

Sometimes I forget to do this so messages are not received until the app is opened.

Note that in whatsapp, messages are received once internet connectivity is enabled.

Thanks

Thanks, can indeed reproduce it (Android6, redmi note 3).

Sometimes (read: rarely) a new incoming message (or syncmessage, or syncreadmessage?) appears to kickstart the receiving. Maybe ill test it more thoroughly when there is less noise on my signal account.

Since whatsapp can cope with this, could it be a signal-server bug?

There's an issue somewhere about closing the app from the overview screen and then not receiving notifications afterwards. (Don't have energy to find it now.)

Edit: #4965

Closing as duplicate of #4965
(@kepler2 could you add your reproduction steps to that issue?)

@2-4601 why should this be a duplicate? This issue is about signal not noticing the establishment of a network connection, not about signal being killed on swipe.

My signal works fine after swiping if the connection is stable. Please reopen.

@Trolldemorted Because the original reproduction steps and the steps added later list the closing from the recents view. You also replied that you can reproduce it and did not say until now that it is also reproducible without explicit closing.

It is not reproducible without explicit "closing", but, as i said, this is not #4956 since as long as the connection is stable messages are received just fine. #4956 was classified as a ROM issue, whereas this looks like a Signal/GMS/Signal-Server issue to me, or is this not reproducible on your phone?

Can I open another issue with the updated reproduction steps? In my opinion this is dealbreaking as it affects the usability of the app and I don't want the issue to remain buried in this repo :)

For me at least I need to instruct friends to keep the app opened all times, or to open it at least once in order to receive messages.

I really appreciate all the hard work that is put into this app. Thanks for the replies and sry if I don't appear tech savvy but I try to explain as good as I can.

Cannot reproduce on Moto G4 Play, Android 6.0.1, Signal 3.27.1

  1. I disable Wi-Fi and enable cellular data
  2. While Signal is in the background someone sends me a Signal message and I receive a notification of it as expected.
  3. I disable cellular data
  4. I swipe-close Signal from recents
  5. Someone sends me a Signal message
  6. I enable cellular data
  7. After a minute or so I receive a notification for the message

Then I did the same again without step 4 and result is the same.

https://gist.github.com/anonymous/9284a18b6e22f22918f08d8542de943e

I don't think the cause of #4965 is clear. ROM issue was just speculated.

As referenced in #4965 the swiping from recents has had issues with receiving notifications https://github.com/WhisperSystems/Signal-Android/issues/1037#issuecomment-36767446:

This is the consequence of a workaround for an Android OS bug that was causing TextSecure to miss incoming messages after swiping from the recent tasks list. I agree it's unfortunate, but it's better than the alternative, and I don't think there's anything we can do until Android fixes their bug.

But the state of that OS bug seems to be unclear at the moment as is the fix/workaround that Signal is using.


@kepler2

For me at least I need to instruct friends to keep the app opened all times, or to open it at least once in order to receive messages.

Do notifications work for you if you don't swipe Signal from recents? If they do, is there some reason you would want to swipe it off?

on a second try: Sometimes i get the notification properly after ~1min, sometimes it just takes several minutes, and i was not that patient during my first attempt.

@kepler2 are you really sure that if you go through 2-4601's steps this problem arises every time, and that these messages do not come a few minutes delayed?

Do you have Signal-Desktop instances linked to your Android?

I'll try to test again tomorrow and report here. Thanks.

@Trolldemorted I don't have any Signal-Desktop instances linked to my Android. I'll try again today and write here my report. Thanks.

@2-4601 "Do notifications work for you if you don't swipe Signal from recents? If they do, is there some reason you would want to swipe it off?"

Well if i restart the smartphone, signal is not present in the recent apps, so I have to manually start it. Today the same, someone sent me a message I did not receive it until i opened the application. So basically i have to send a message from whatsapp to the person i want to talk to to tell him / her to open signal... I'll test again later.

@kepler2 Have you checked the support article which @FeuRenard linked to?

After a quick search it seems like ZEN UI has some power saving modes that could affect this: https://www.asus.com/zentalk/thread-3135-1-1.html

@2-4601: Thanks you for the guidance. I think I'm on the good lane now but i still have to check on another device. For the Asus I think it has to do with the Auto-Start manager as I have a different menu in the Power Saving section , I think its part of the "bloat" asus ships with its smartphones and i think it puts the newly installed apps on "deny", which means that Signal has some process that starts once the smartphone is booted?

As you can see in the screenshot below, I have put Signal to Allow, restarted the phone and now it seems i can receive messages after i enable the internet connection (WIFI works faster, on 3G, messages are received with a delay but i guess its not a big problem).

I guess this applies to all Asus devices owners as ZenUI is preinstalled on all of them...

I still have to check on another device (not asus) to see if the problem really is on my Asus and I'll reply here.

Screenshot:

screenshot

@2-4601 Hello. I've managed to reproduce the issue on the other device which has CyanogenMod 12.1. Note that I've looked for a similar setting as in the Asus device but this has none related. Sry for talking your time...

Regarding CM 12.1 it could be a bad Google Apps install. The support article also mentions that and has a link to Cyanogen wiki which you might want to check out.

And if none of the other options in the support article work we should move on to issue #4965 of which this issue seems to be a duplicate after all.

@kepler2 does this happen every time on the cm12 device?

Could you run ps | grep thought as root in a terminal/adb shell to see whether the signal process is still alive?

I am still not convinced that this is 4965, since this issue is also occuring after rebooting, and not just after swiping, and only after swiping w/o network.

Last time i checked, i received notifications but with several minutes delay. But when i posted about CM12 i did not receive (or maybe i was too fast in closing the internet connection?), I still have to check thoroughly.

@Trolldemorted Can I run that command in Linux and also, the process should be visible even after a fresh start of the phone?

You may run the command either on the phone directly in CM's terminal app, or via an adb shell on your pc - adb should run on most linux distributions.

Guys, it seems to work properly, I don't really know the issue was. Thanks for helping and thanks for this app.

Was this page helpful?
0 / 5 - 0 ratings