docs.unity3d.com
    目次を表示する/隠す

    Class NotificationSettings.iOSSettings

    Class used to access iOS-specific notification settings.

    Inheritance
    Object
    NotificationSettings.iOSSettings
    Namespace: Unity.Notifications
    Syntax
    public static class 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
    Boolean

    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
    Boolean

    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
    Boolean

    UseAPSReleaseEnvironment

    Enable this when signing the app with a production certificate.

    Declaration
    public static bool UseAPSReleaseEnvironment { get; set; }
    Property Value
    Type Description
    Boolean

    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
    Boolean
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)