Scheduling local notification after app is terminated from App Switcher by the user manually

Dear friends,

In my app, i am using Silent Push Notification and Background Fetch to schedule local notification.

Everything is working fine, even when the app is in background state. But in some devices, when the app is quit manually from App Switcher, silence push notification is not received and hence local notification is not scheduled properly.

We could not use PushKit as our app is not providing VoIP services and we cannot use continuous location detection feature, as it may drain battery of the device.

Is there any trick to make scheduling local notification works even when the app is quit from App Switcher?

Is it possible use PushKit and get approved by Apple by any special request?

Please advise, Thank you.

"But in some devices". Not in some devices, in every device - if the app is terminated and you send it a silent push then the app won't receive it.

But if the intention is to display a notification to the user, then why are you using a silent push sent to the app rather than a user push???

You need to get your terminology correct in your requirement as its not clear what you are asking. What does schedule local notification mean exactly? A local notification and a push notification are two different things, your talking about local notification and push notification and so its confusing what you want.

A local notification is posted by the app, they can be scheduled by the app to be displayed in the future.

A push notification is not a local notification, when the app receives a silent push notification it can display a local notification, but the app cannot receive a silent notification if its not running.

There are different types of push notification, if you send a non silent notification then it will be displayed to the user (and will look like a local notification) even if the app is not running.

Switch from using a silent push notification to a user push notification, then that will get displayed to the user even if the app is terminated.

If the push payload's notification title/subtitle/body can be set by the server then it will just get displayed to the user directly. If the notification title/subtitle/body needs to be changed after the push has been received, then that can be done by using a notification service extension.

I just want to post a link to your other thread for context.

Share and Enjoy

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

Scheduling local notification after app is terminated from App Switcher by the user manually
 
 
Q