Skip to main content

Request Permission

RequestPermission(string jsonString)

RequestPermission is called by the merchant to request a permission.

Request Attributes

ELEMENTTYPEDESCRIPTION
permissionstring arrayList of permissions. Possible permission strings:
- camera
- read_contact
- read_storage
- write_storage
- location

Sample Request

{
"permission": [
"camera",
"read_storage"
]
}

Response Attributes

ELEMENTTYPEDESCRIPTION
"permission_string"integerStatus value:
- -1: not_determined (applicable to iOS)
- 0: denied/unauthorized
- 1: authorized

Sample Response

{
"data": {
"camera": 1,
"read_storage": 0
}
}