diff --git a/src/plugins/background-geolocation.ts b/src/plugins/background-geolocation.ts index ec57192e47..73ab534b3b 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.