docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class NotificationSettings.iOSSettings

    Class used to access iOS-specific notification settings.

    Inheritance
    object
    NotificationSettings.iOSSettings
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Notifications
    Assembly: solution.dll
    Syntax
    public static class NotificationSettings.iOSSettings

    Properties

    Name Description
    AddRemoteNotificationCapability

    Enable this to add the push notification capability to you Xcode project.

    AddTimeSensitiveEntitlement

    Add entitlement to enable notifications with time-sensitive interruption level.

    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.

    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.

    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).

    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.

    UseAPSReleaseEnvironment

    Enable this when signing the app with a production certificate.

    UseLocationNotificationTrigger

    If you intend to use the iOSNotificationLocationTrigger in your notifications you must include the CoreLocation framework in your project.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023