Right after I receive a notification I want to execute a background task. I'm using firebase to receive notification. I can receive notification successfully with 'UNUserNotificationCenter' in the AppDelegate file.
Now my goal is to send a "GET" - "PUT" request, right after I received a notification (only when the app is in background)
I saw the documentation about Background Tasks: https://developer.apple.com/documentation/backgroundtasks
But I can't found a way to execute a background task right after I receive a notification.
Is anyone has any suggestion about that? Thank you