Skip to content

LocationError

export const LocationError = {

Error codes returned when the native location API fails to fetch a location.

Code Error
0 Location unknown
1 Location permission denied
2 Network error
3 Attempt to initiate location-services in background with WhenInUse authorization
408 Location timeout
499 Location request cancelled

Members

BackgroundWhenInUse

BackgroundWhenInUse: 3,

Attempt to initiate location-services in background with WhenInUse authorization.

Cancelled

Cancelled: 499,

Location request was cancelled.

LocationUnknown

LocationUnknown: 0,

Location could not be determined at this time.

NetworkError

NetworkError: 2,

Network error occurred while attempting to fetch location.

PermissionDenied

PermissionDenied: 1,

Location permission denied by the user.

Timeout

Timeout: 408,

Location request timed out.