diff --git a/src/plugins/geolocation.ts b/src/plugins/geolocation.ts index 60d28a7e3..06ffd8d87 100644 --- a/src/plugins/geolocation.ts +++ b/src/plugins/geolocation.ts @@ -154,7 +154,7 @@ export class Geolocation { static watchPosition(options?: GeolocationOptions): Observable { return new Observable( (observer: any) => { - let watchId = navigator.geolocation.watchPosition(observer.next.bind(observer), options); + let watchId = navigator.geolocation.watchPosition(observer.next.bind(observer), observer.error.bind(observer), options); return () => navigator.geolocation.clearWatch(watchId); } );