react-native-background-geolocation@5.0.0-beta.1
    Preparing search index...

    Variable LocationErrorConst

    LocationError: {
        LocationUnknown: 0;
        PermissionDenied: 1;
        NetworkError: 2;
        BackgroundWhenInUse: 3;
        Timeout: 408;
        Cancelled: 499;
    } = ...

    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

    Type Declaration

    • ReadonlyLocationUnknown: 0
    • ReadonlyPermissionDenied: 1
    • ReadonlyNetworkError: 2
    • ReadonlyBackgroundWhenInUse: 3
    • ReadonlyTimeout: 408
    • ReadonlyCancelled: 499