Skip to content

setBackgroundMessageHandler does not trigger on iOS #6408

Answered by hnqso
hnqso asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @mikehardy,

I'm gonna answer my own question hoping it will help someone else digging the same hole.

In their own documentation Apple highlights it:

The system treats background notifications as low priority: you can use them to refresh your app’s content, but the system doesn’t guarantee their delivery

On top of that iOS may put your app in a "suspended state". You should see something like this in the device logs:

com.apple.sleep.WakeUpResultsNotificationRetry.activity:[{ 
  name: FileProtectionPolicy, 
  policyWeight: 0.010, 
  response: {
    Decision: Absolutely Must Not Proceed, 
    Score: 0.00, 
    Rationale: [...]
  }
}], FinalDecision: Absolutely Must Not Proceed}

Checki…

Replies: 5 comments 9 replies

Comment options

You must be logged in to vote
2 replies
@hnqso
Comment options

@mikehardy
Comment options

Comment options

You must be logged in to vote
7 replies
@hnqso
Comment options

@prijai07
Comment options

@frankA10019
Comment options

@ROG3R-DEV
Comment options

@zahoormohammed
Comment options

Answer selected by hnqso
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
9 participants