journey.hardware
Property | Description | Example |
---|---|---|
| Returns the device's current GPS location as a Note: This feature was introduced in version 4.81.1 of the JourneyApps Runtime. | |
| Launches the barcode scanner programmatically. Accepts the following optional parameters:
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