Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
UNNotificationServiceExtension
has a method
didReceiveNotificationRequest:withContentHandler
to handle notification change.
It has a very ambiguous description, regarding timeout time:
That method has a limited amount of time to perform its task and execute the provided completion block. If your method does not finish in time,
And here's a description of
serviceExtensionTimeWillExpire
method:
If your didReceiveNotificationRequest:withContentHandler: method takes to long to execute its completion block, the system calls this method on a separate thread to give you one last chance to execute the block.
I don't fully get, what "
to long to execute
" means.
Does it have any quantitative data?
Does it vary on device it runs, etc.?
Thanks!
https://developer.apple.com/reference/usernotifications/unnotificationserviceextension/1648229-didreceivenotificationrequest?language=objc#discussion
Taken from Apple docs above link.
Your extension has a limited amount of time
(no more than 30 seconds)
to modify the content and execute the contentHandler block.
Thanks for contributing an answer to Stack Overflow!
-
Please be sure to
answer the question
. Provide details and share your research!
But
avoid
…
-
Asking for help, clarification, or responding to other answers.
-
Making statements based on opinion; back them up with references or personal experience.
To learn more, see our
tips on writing great answers
.