I will change the answer that I gave previously since it's wrong.
Then correct answers should be
here is the steps,
1) enable the remote notification on background modes
2) create background notification
{
"aps" : {
"content-available" : 1
},
"acme1" : "bar",
"acme2" : 42
}
"content-available" is the one you need to consider and you can add custom keys as above example. an aps dictionary that includes only the content-available key.
3) receive push notifications
Your app has 30 seconds to perform any tasks and call the provided completion handler.
application(_:didReceiveRemoteNotification:fetchCompletionHandler:)
thats the method.
Here is the more details about it. https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/pushing_background_updates_to_your_app