Selected Role Response
Selected Role Response

Selected Role Response

This intent is sent from the Profile Client to the third-party application in response to a role application when there is a switch role, transfer role, or in case of multi-device login.

Prerequisites

  • The request_id and package parameters were received in the login_info parameter of the Login Request.
  • The minimum required Profile Client Android version is 2.0.23100.

Intent Definition

Name
Description
Action
com.zebra.dfs.ACTION_SELECTED_ROLES_RESPONSE
Intent Type
broadcast
Extra 0
This extra selected_roles_response contains selected role information. This is a mandatory parameter. Go to the payload definition. This extra may or may not be encrypted.
Extra 0 - sent unencrypted
This extra specifies the JSON selected role information when not encrypted. This is an optional parameter.
          Type
String
          Name
selected_roles_response
          Value
String in JSON format
Extra 0 - sent encrypted
This extra specifies the JSON selected role information when encrypted. This is an optional parameter.
          Type
Byte array
          Name
selected_roles_response
          Value
Go to the code snippet under Encryption/Decryption.

login_info_response payload

The login_info parameter contains JSON formatted data with the following fields:
{ "user_name": "username", //mandatory "status": "LOGGED_IN" or “LOGGED_OUT”, // mandatory "selected_roles":"[{"name":"qapfm_v2","description":"qapfm_v2","is_swap_role":true}]"//mandatory }
The Profile Client encrypts the selected_roles_response payload if the client is configured with a secret_key. Otherwise, it is sent in the clear.