Calling an URSession task in background and display local notification

I would like to call a "GetMessages" API every 10 minutes while the app is not active or shutdown. if a message is returned, display the message as a local notification

Will the background api run if the app is shut down?

An example of this is when an email app shows a notification. Can they pull from their server while the app is not running or do they use the push notification service.

I know that calendar events can be scheduled locally and for location changes, but I don't know if calling a api task with the app not running is possible.

Will the background api run if the app is shut down?

What platform are you targeting?

What do you mean by “shut down”?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Calling an URSession task in background and display local notification
 
 
Q