Braze JavaScript SDK
    Preparing search index...

    Function setUserLastKnownLocation

    • Reports the user last known location.

      Parameters

      • latitude: number

        Latitude of user last known location. Must be between -90 and 90 inclusive.

      • longitude: number

        Longitude of user last known location. Must be between -180 and 180 inclusive.

      • Optionalaccuracy: number

        Optional - Accuracy of user last known location. Must be >=0.

      • Optionalaltitude: number

        Optional - Altitude of user last known location.

      • OptionalaltitudeAccuracy: number

        Optional - Accuracy of altitude of user last known location. Must be >=0.

      Returns Promise<boolean | undefined>

      Resolves to a boolean that indicates whether the update was successfully enqueued. Resolves to undefined if the SDK is not initialized.