Function getDeviceId

  • Retrieves the 'device id,' a randomly generated ID that is stored by the storage manager. This ID resets for private browsing sessions and when website data is cleared. For example:

    console.log('The device id is ' + braze.getDeviceId());
    

    Returns Promise<string | undefined>