PermissionValue
Stay organized with collections
Save and categorize content based on your preferences.
outlined_flag
PermissionValue is returned to the Action as output for actions.type.Notifications.
The JSON representation includes granted_permissions, permission_status, and additional_user_data.
Possible values for permission include NAME, DEVICE_PRECISE_LOCATION, DEVICE_COARSE_LOCATION, and UPDATE.
The returned status of permission can be PERMISSION_GRANTED, PERMISSION_DENIED, ALREADY_GRANTED, UNVERIFIED_USER, INCOGNITO_USER, or SIGNED_OUT_USER.
Returned to the Action as output for actions.type.Notifications.
JSON representation
{
"granted_permissions" : [
enum (Permission )
] ,
"permission_status" : enum (PermissionGrantedStatus ) ,
"additional_user_data" : string (AdditionalUserData)
}
Fields
granted_permissions
enum (Permission )
Possible values for permission.
permission_status
enum (PermissionGrantedStatus )
The returned status of permission slot.
additional_user_data
enum (AdditionalUserData)
Additional data generated while updating user's permission.
Permission
Possible values for permission.
Enums
UNSPECIFIED_PERMISSION
Unspecified permission.
NAME
Ask for user's first and last name.
DEVICE_PRECISE_LOCATION
Ask for user's precise location, latitude/longitude, and formatted address.
DEVICE_COARSE_LOCATION
Ask for user's coarse location, zip code, city, and country code.
UPDATE
Ask for permissions to send updates.
PermissionGrantedStatus
The returned status of permission slot.
Enums
TYPE_UNSPECIFIED
Unspecified.
PERMISSION_GRANTED
User granted permission.
PERMISSION_DENIED
User denied permission.
ALREADY_GRANTED
User has previously granted permission.
UNVERIFIED_USER
Permissions cannot be requested from an unverified user.
INCOGNITO_USER
Permissions cannot be requested from an incognito user.
SIGNED_OUT_USER
Permissions cannot be requested from a signed-out user. Only certain permissions
are available for signed-out users.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[],[]]