Struct iOSNotificationSettings
iOSNotificationSettings contains the current authorization status and notification-related settings for your app. Your app must receive authorization to schedule notifications.
Inherited Members
Namespace: Unity.Notifications.iOS
Assembly: solution.dll
Syntax
public struct iOSNotificationSettings
Remarks
Use this struct to determine what notification-related actions your app is allowed to perform by the user. This information should be used to enable, disable, or adjust your app's notification-related behaviors. The system enforces your app's settings by preventing denied interactions from occurring.
Properties
| Name | Description |
|---|---|
| AlertSetting | The authorization status for displaying alerts. |
| AlertStyle | The type of alert that the app may display when the device is unlocked. |
| AuthorizationStatus | When the value is set to Authorized your app is allowed to schedule and receive local and remote notifications. |
| BadgeSetting | The authorization status for badging your app’s icon. |
| CarPlaySetting | The setting that indicates whether your app’s notifications may be displayed in a CarPlay environment. |
| LockScreenSetting | The setting that indicates whether your app’s notifications appear onscreen when the device is locked. |
| NotificationCenterSetting | The setting that indicates whether your app’s notifications are displayed in Notification Center. |
| ShowPreviewsSetting | The setting that indicates whether the app shows a preview of the notification's content. |
| SoundSetting | The authorization status for playing sounds for incoming notifications. |