Logically, the decision to make notification persistent is left as user decision
https://stackoverflow.com/questions/47195376/is-there-any-api-so-we-could-handle-ios-persistent-push-notification-via-code-o
So, in your app, you could propose user to change its settings, explaining the added comfort he/she will get with persistent notifications.
Or, try to get the notifications in your app and let user see them from there, with getDeliveredNotifications
getDeliveredNotifications(completionHandler:)
Returns a list of the app’s notifications that are still displayed in Notification Center.
Declaration
func getDeliveredNotifications(completionHandler: @escaping ([UNNotification]) - Void)
Parameters
completionHandler
The block to execute with the results. This block may be executed on a background thread. The block has no return value and takes the following parameter:
notifications
An array of UNNotification objects representing the local and remote notifications of your app that have been delivered and are still visible in Notification Center. If none of your app’s notifications are visible in Notification Center, the array is empty.
Also have a look here:
https://stackoverflow.com/questions/18944883/create-a-persistent-notification-in-ios
Topic:
App & System Services
SubTopic:
Core OS
Tags: