Q:

Control Notification "Show Previews" option programmatically on iOS

I need to set my app Notification "Show Previews" options to "When Unlocked (Default)". How can we configure it using the UNNotificationSettings? I do not see an option to configure it.

A:

You can not do this because these settings can not be changeable by 
code. Push-notifications will display according to the settings set by user for his/her device.

