Skip to content

Commit

Permalink
fix(background-geolocation): watchLocationMode returns observable (#2547
Browse files Browse the repository at this point in the history
)

* fix(background-geolocation): watchLocationMode returns observable

* fix(package): rm version change
  • Loading branch information
frankkoenigstein authored and danielsogl committed Jun 14, 2018
1 parent dd769b0 commit 3f8a6f2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/@ionic-native/plugins/background-geolocation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<boolean>}
* @returns {Observable<number>}
*/
@Cordova({
platforms: ['Android']
platforms: ['Android'],
observable: true
})
watchLocationMode(): Promise<boolean> { return; }
watchLocationMode(): Observable<number> { return; }

/**
* Stop watching for location mode changes.
Expand Down

0 comments on commit 3f8a6f2

Please sign in to comment.