docs.unity3d.com
    Show / Hide Table of Contents

    Class PermissionRequest

    A class to request permission to post notifications. Before Android 13 (API 33) it is not required and Status will become Allowed immediately. May succeed or fail immediately. Users response is saved to PlayerPrefs. Respects users wish to not be asked again.

    Inheritance
    Object
    PermissionRequest
    Namespace: Unity.Notifications.Android
    Syntax
    public class PermissionRequest

    Constructors

    PermissionRequest()

    Create a new request. Will show user a dialog asking for permission if that is required to post notifications and user hasn't permanently denied it already.

    Declaration
    public PermissionRequest()

    Properties

    Status

    The status of this request. Value other than RequestPending means request has completed.

    Declaration
    public PermissionStatus Status { get; set; }
    Property Value
    Type Description
    PermissionStatus

    See Also

    UserPermissionToPost
    SETTING_POST_NOTIFICATIONS_PERMISSION
    Back to top
    Terms of use
    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