I don't know about early versions of IOS, but iOS 11 has a feature:
How to create a persistent notification programmatically with swift in my IOS app? I didn't found any docs about it.
I also found this answer: Create a persistent notification in iOS but it was a long time ago, maybe the situation has changed ?
The feature you're describing is a local notification. See the docs here:
https://developer.apple.com/documentation/usernotifications
You cannot force notifications or their style on the user. That is what the Settings window in your screen shot is about. Only the user can decide whether your notification alert will appear as Temporary or Persistent. (The user can also decide to suppress your notifications completely.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With