signalapp / Signal-iOS

A private messenger for iOS.
https://signal.org
GNU Affero General Public License v3.0
10.6k stars 2.95k forks source link

Messages not received when App is not open #5733

Closed MorgeMoensch closed 4 months ago

MorgeMoensch commented 5 months ago

Bug description

Messages are not received when the application has not been opened. On the sender side, only one checkmark appears (so it is not just an issue with notifications on the recipients device, but with actually receiving the message). The messages are received when the user enters Signal.

This issue bugs a friend of mine. Interestingly, another friend has the same or a similar issue with Threema and Whatsapp. Both are on iOS 17.2.1 - I suppose it might be that Apple kills the background activity. Maybe you can pinpoint the issue from the debug-logs and contact apple if necessary.

Steps to reproduce

Actual result: Message does not get delivered

Expected result: Message gets delivered and triggers a notification

Screenshots

Device info

Device: iPhone 13

iOS version: 17.2.1

Signal version: 6.54.0.8

Link to debug log

https://debuglogs.org/ios/6.54.0/f086f393c0428fe87617d66d918b1f858eb5f057666b695373bec9d63a97e447.zip

lukasvrenner commented 5 months ago

#5699

Miguel-Signal commented 5 months ago

Hi @MorgeMoensch, I have a few questions.

Does the issue persist after your friend restarts their device?

Does your friend have an Apple Watch? If so, can they test something for us by stopping Signal from sending notifications to the watch then seeing if notifications on their phone improve afterwards?

Lastly, could you ask them to re-register for push notifications? Signal Settings > Notifications > Re-register Push Notifications > OK.

MorgeMoensch commented 5 months ago

@Miguel-Signal thanks for your response.

He did the suggested actions, but without success.

But I observed that some times, a message does not get through but when I send another one, both are delivered.

The message Ids are from Signal Desktop, the log below is from his Signal iOS. Maybe this helps you.

Sent, but not received initially: 1705344296795 Sent, received and above was received at the same time: 1705551524647

Sent, but not received: 1705562672171 Sent, and previous one was received at the same time: 1705562995698

Here are some debuglogs from him from today, after doing all the things: https://debuglogs.org/ios/6.54.0/0afe22ccd9edd52b5deaa903eea59475e96a7fd3601ef7d1dfd03755378fe3ef.zip

Anything else he could try?

Miguel-Signal commented 5 months ago

Thanks for providing this information.

Do you have background app refresh enabled for Signal in iOS Settings > General > Background App Refresh?

Can you also go to iOS Settings > Screen Time > Content and Privacy Restrictions > Background App Activities and confirm it's allowed?

MorgeMoensch commented 5 months ago

It seems like some of this fixed the issue. Maybe you could show a little Toast in the app if you observe this behaviour?