PermissionValue

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