I'm currently implementing push notifications and I was wondering, what does completionHandler
in userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:
actually do?
Apple's documentation says:
The block to execute when you have finished processing the user’s response. You must execute this block at some point after processing the user's response to let the system know that you are done. The block has no return value or parameters.
But this is very cryptic and doesn't actually answer my question. Does it kill the app because I "finished handling the action"? Does it not kill the app? What if I have some async calls (like replying to a message) and I call the completionHandler? For now it seems to be working but what if the connection is slow?