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.
Inherited Members
Namespace: Unity.Notifications.Android
Assembly: Unity.Notifications.Android.dll
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()
See Also
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 |