Skip to content

Support for notifications to terminated app in iOS #5695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
andreaslans opened this issue Apr 8, 2021 · 2 comments
Closed

Support for notifications to terminated app in iOS #5695

andreaslans opened this issue Apr 8, 2021 · 2 comments
Labels
type: question A question where further information is requested

Comments

@andreaslans
Copy link

andreaslans commented Apr 8, 2021

We are building an app where notifications are extremly important and have just now realized that a lot of users are having problems with the fact that they are swiping to close all apps.

We have reread the documentation and found this:

On iOS, if the user swipes away the application from app Switcher, it must be manually reopened again for background messages to start working again.

We are now unsure as the meaning of this.

Are we to conclude that we cannot receive any notifications at all if the user has forced closed the app? Or is it just that we cant handle the notification in the app and that it should be added to the notification drawer inside the phones operating system?

@andreaslans andreaslans changed the title Support for notifications to terminated app Support for notifications to terminated app in iOS Apr 8, 2021
@darshankawar
Copy link

@andreaslans
There are couple of open issues reported regarding notifications not triggering when app is terminated / killed or in background or sometimes fails silently.

#2854
#2603

Are we to conclude that we cannot receive any notifications at all if the user has forced closed the app?

This may not be an expected behavior, and in ideal scenario, the notifications should be triggered / displayed even if app is forced closed or killed, atleast the above referred issues indicate the same.

Please see above issues and confirm if either of them resemble your scenario, so that you may track your query in respective issue.

@darshankawar darshankawar added the blocked: customer-response Waiting for customer response, e.g. more information was requested. label Apr 8, 2021
@Salakar
Copy link
Member

Salakar commented Apr 8, 2021

Are we to conclude that we cannot receive any notifications at all if the user has forced closed the app?

Correct, see https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1623013-application, specifically:

In addition, if you enabled the remote notifications background mode, the system launches your app (or wakes it from the suspended state) and puts it in the background state when a remote notification arrives. However, the system does not automatically launch your app if the user has force-quit it. In that situation, the user must relaunch your app or restart the device before the system attempts to launch your app automatically again.

@Salakar Salakar closed this as completed Apr 8, 2021
@darshankawar darshankawar added type: question A question where further information is requested and removed blocked: customer-response Waiting for customer response, e.g. more information was requested. labels Apr 9, 2021
@firebase firebase locked and limited conversation to collaborators May 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: question A question where further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants