Skip to content
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

registerNotificationReceivedBackground not triggered if app not running - iOS #834

Closed
Fredkr opened this issue Mar 5, 2022 · 3 comments
Closed
Assignees

Comments

@Fredkr
Copy link

Fredkr commented Mar 5, 2022

Hi,

receivedBackground (& receivedForeground) works fine when app is in foreground. Or in background & still alive.
But nothing is triggered when the app is killed.

Is this at all supported?

plattform: iOs
version: 15.3.1 & 15.4.x

@DanielEliraz DanielEliraz self-assigned this Mar 8, 2022
@DanielEliraz
Copy link
Collaborator

@Fredkr I will add to docs that it works only when you send background APN as stated in apple docs:

{
   "aps" : {
      "content-available" : 1
   },
   "acme1" : "bar",
   "acme2" : 42
}

@Fredkr
Copy link
Author

Fredkr commented Mar 8, 2022

@DanielEliraz Thanks, but this doesn't answer my question though.

But after getting some more understanding of the iOS push notifications i believe it's not att all supported on an OS level to receive silent notifications if the app is not running (killed by user etc)? So nothing related to this lib.

@DanielEliraz
Copy link
Collaborator

Should be added it to the docs as well. @Fredkr PR is welcomed of course 💟

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants