Braze React Native SDK - v21.0.0
    Preparing search index...

    Function getDeviceId

    • Returns a unique ID stored on the device.

      On Android, a randomly generated, app specific ID that is stored on the device. A new ID will be generated if the user clears the data for the app or removes/re-installs the app. The ID will persist across Braze.changeUser calls.

      On iOS, this ID is generated from the IDFV. This behavior will be updated in the next major version.

      Parameters

      • callback: Callback<string>

        A callback that receives the function call result.

      Returns void