From 961cff185dc1e2c960178a3fdb00ca459e51f854 Mon Sep 17 00:00:00 2001 From: Ibby Date: Sat, 18 Mar 2017 18:33:01 -0400 Subject: [PATCH] fix(background-geolocation): configure returns an observable Configure no longer returns a promise or takes callbacks as parameters. --- src/plugins/background-geolocation.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/plugins/background-geolocation.ts b/src/plugins/background-geolocation.ts index ec57192e4..73ab534b3 100644 --- a/src/plugins/background-geolocation.ts +++ b/src/plugins/background-geolocation.ts @@ -1,4 +1,5 @@ -import {Cordova, Plugin} from './plugin'; +import { Cordova, Plugin } from './plugin'; +import { Observable } from 'rxjs/Observable'; declare var window; @@ -363,12 +364,13 @@ export class BackgroundGeolocation { * Configure the plugin. * * @param options {BackgroundGeolocationConfig} options An object of type Config - * @return {Promise} + * @return {Observable} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', + observable: true }) - static configure(options: BackgroundGeolocationConfig): Promise { return; } + static configure(options: BackgroundGeolocationConfig): Observable { return; } /** * Turn ON the background-geolocation system.