From 3f8a6f24251866c582501a8265ccb7298ebf6eb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20K=C3=B6nigstein?= Date: Thu, 14 Jun 2018 11:36:02 +0200 Subject: [PATCH] fix(background-geolocation): watchLocationMode returns observable (#2547) * fix(background-geolocation): watchLocationMode returns observable * fix(package): rm version change --- src/@ionic-native/plugins/background-geolocation/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/@ionic-native/plugins/background-geolocation/index.ts b/src/@ionic-native/plugins/background-geolocation/index.ts index 99461d26e..5fb043fcc 100644 --- a/src/@ionic-native/plugins/background-geolocation/index.ts +++ b/src/@ionic-native/plugins/background-geolocation/index.ts @@ -459,12 +459,13 @@ export class BackgroundGeolocation extends IonicNativePlugin { * Method can be used to detect user changes in location services settings. * If user enable or disable location services then success callback will be executed. * In case or error (SettingNotFoundException) fail callback will be executed. - * @returns {Promise} + * @returns {Observable} */ @Cordova({ - platforms: ['Android'] + platforms: ['Android'], + observable: true }) - watchLocationMode(): Promise { return; } + watchLocationMode(): Observable { return; } /** * Stop watching for location mode changes.