Class NotificationSettings.iOSSettings
Class used to access iOS-specific notification settings.
Inherited Members
Namespace: Unity.Notifications
Assembly: Unity.Notifications.dll
Syntax
public static class NotificationSettings.iOSSettings
Properties
AddRemoteNotificationCapability
Enable this to add the push notification capability to you Xcode project.
Declaration
public static bool AddRemoteNotificationCapability { get; set; }
Property Value
Type | Description |
---|---|
bool |
AddTimeSensitiveEntitlement
Add entitlement to enable notifications with time-sensitive interruption level.
Declaration
public static bool AddTimeSensitiveEntitlement { get; set; }
Property Value
Type | Description |
---|---|
bool |
DefaultAuthorizationOptions
Configure the notification interaction types your app will include in the authorisation request if RequestAuthorizationOnAppLaunch is enabled. Alternatively you can specify them when creating a AuthorizationRequest
from a script.
Declaration
public static AuthorizationOption DefaultAuthorizationOptions { get; set; }
Property Value
Type | Description |
---|---|
AuthorizationOption |
NotificationRequestAuthorizationForRemoteNotificationsOnAppLaunch
If this is enabled the app will automatically register your app with APNs after the launch which would enable it to receive remote notifications. You’ll have to manually create a AuthorizationRequest to get the device token.
Declaration
public static bool NotificationRequestAuthorizationForRemoteNotificationsOnAppLaunch { get; set; }
Property Value
Type | Description |
---|---|
bool |
RemoteNotificationForegroundPresentationOptions
The default presentation options for received remote notifications. In order for the specified presentation options to be used your app must had received the authorization to use them (the user might change it at any time).
Declaration
public static PresentationOption RemoteNotificationForegroundPresentationOptions { get; set; }
Property Value
Type | Description |
---|---|
PresentationOption |
RequestAuthorizationOnAppLaunch
It's recommended to make the authorization request during the app's launch cycle. If this is enabled the user will be shown the authorization pop-up immediately when the app launches. If it’s unchecked you’ll need to manually create an AuthorizationRequest before your app can send or receive notifications.
Declaration
public static bool RequestAuthorizationOnAppLaunch { get; set; }
Property Value
Type | Description |
---|---|
bool |
UseAPSReleaseEnvironment
Enable this when signing the app with a production certificate.
Declaration
public static bool UseAPSReleaseEnvironment { get; set; }
Property Value
Type | Description |
---|---|
bool |
UseLocationNotificationTrigger
If you intend to use the iOSNotificationLocationTrigger in your notifications you must include the CoreLocation framework in your project.
Declaration
public static bool UseLocationNotificationTrigger { get; set; }
Property Value
Type | Description |
---|---|
bool |