docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Constructor AuthorizationRequest

    AuthorizationRequest(AuthorizationOption, bool)

    Initiate an authorization request.

    Declaration
    public AuthorizationRequest(AuthorizationOption authorizationOption, bool registerForRemoteNotifications)
    Parameters
    Type Name Description
    AuthorizationOption authorizationOption

    The authorization options your app is requesting. You may specify multiple options to request authorization for. Request only the authorization options that you plan to use.

    bool registerForRemoteNotifications

    Set this to true to initiate the registration process with Apple Push Notification service after the user has granted authorization If registration succeeds the DeviceToken will be returned. You should pass this token along to the server you use to generate remote notifications for the device.

    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