openInSecureMode

open fun openInSecureMode(@NotNull context: @NotNull Context, @NotNull signature: @NotNull String)

Opens the Beacon in Secure Mode on the appropriate page depending on your Beacon's config.

To retrieve previous conversations in Secure Mode, you must:

  1. Identify the user with their email and name using Beacon.identify()
  2. Open Beacon with the signature using BeaconActivity.openInSecureMode()

For security reasons, you'll need to pass in the signature every time you want to open the Beacon UI.

Important: You should NOT store the secret key in the app. Instead, your server should provide the computed signature value.

To clear user data, call Beacon.logout()

Parameters

context

a valid context or activity

signature

the computed signature for secure mode authentication


open fun openInSecureMode(@NotNull context: @NotNull Context, @NotNull signature: @NotNull String, screen: BeaconScreens, args: ArrayList<String>)

Opens the Beacon in Secure Mode on the screen passed as parameter in screen.

To retrieve previous conversations in Secure Mode, you must:

  1. Identify the user with their email and name using Beacon.identify()
  2. Open Beacon with the signature using BeaconActivity.openInSecureMode()

For security reasons, you'll need to pass in the signature every time you want to open the Beacon UI.

Important: You should NOT store the secret key in the app. Instead, your server should provide the computed signature value.

To clear user data, call Beacon.logout()

Parameters

context

a valid context or activity

signature

the computed signature for secure mode authentication

screen

one of the possible BeaconScreens enum values

args

arguments passed to the selected screen