diff --git a/src/@ionic-native/plugins/geofence/index.ts b/src/@ionic-native/plugins/geofence/index.ts index 44b77241d..a906aca88 100644 --- a/src/@ionic-native/plugins/geofence/index.ts +++ b/src/@ionic-native/plugins/geofence/index.ts @@ -85,7 +85,7 @@ declare const window: any; @Injectable() export class Geofence extends IonicNativePlugin { - public TransitionType = { + TransitionType = { ENTER: 1, EXIT: 2, BOTH: 3 @@ -96,7 +96,7 @@ export class Geofence extends IonicNativePlugin { * @return {Observable} */ @CordovaFunctionOverride() - onTrasitionReceived(): Observable { return; }; + onTransitionReceived(): Observable { return; }; /** * Initializes the plugin. User will be prompted to allow the app to use location and notifications. @@ -139,20 +139,6 @@ export class Geofence extends IonicNativePlugin { @Cordova() getWatched(): Promise { return; }; - /** - * Called when a geofence is crossed in the direction specified by `TransitType`. - * - * @returns {Observable} - */ - onTransitionReceived(): Observable { - - return new Observable((observer) => { - window && window.geofence && (window.geofence.onTransitionReceived = observer.next.bind(observer)); - return () => window.geofence.onTransitionReceived = () => { }; - }); - - } - /** * Called when the user clicks a geofence notification. iOS and Android only. *