diff --git a/src/lib/geolocation.ts b/src/lib/geolocation.ts index f952909..2dd65e4 100644 --- a/src/lib/geolocation.ts +++ b/src/lib/geolocation.ts @@ -46,7 +46,7 @@ export interface GeoCoords { lng: number; } -export type GeoErrorKind = 'denied' | 'unavailable' | 'timeout'; +export type GeoErrorKind = 'denied' | 'unavailable' | 'timeout' | 'no_provider'; export class GeolocationError extends Error { kind: GeoErrorKind; @@ -319,12 +319,26 @@ async function getNativePosition(native: CapGeolocationPlugin): Promise