journey.hardware
Property
Description
Example
getCurrentLocation
Returns the device's current GPS location as a location
object.
Note: This feature was introduced in version 4.81.1 of the JourneyApps Runtime.
scanBarcode
Launches the barcode scanner programmatically.
Accepts the following optional parameters:
extensions
- One or more supported barcode extensionsprompt
- See details hereallowManualEntry
- See details here
Note: This feature was introduced in version 4.81.1 of the JourneyApps Runtime.
Examples
journey.hardware.getCurrentLocation
journey.hardware.getCurrentLocation
Limitation
Capturing the altitude
and/or vertical_accuracy
is not supported on several platforms / devices, including Android devices. These devices will return undefined
or null
for these fields.
main.ts
journey.hardware.scanBarcode
journey.hardware.scanBarcode
main.ts
Last updated