From dbcb103adc8c3ea506477acbfe3bb4b6bdbcf40c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Fern=C3=A1ndez?= Date: Tue, 9 Jan 2018 20:12:49 +0100 Subject: [PATCH] fix(web-intent): rename `onNewIntent` to `onIntent` The `onNewIntent` function doesn't exist in `darryncampbell-cordova-plugin-intent`, it's actually called `onIntent`. --- src/@ionic-native/plugins/web-intent/index.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/@ionic-native/plugins/web-intent/index.ts b/src/@ionic-native/plugins/web-intent/index.ts index a41f063b6..471ab67f0 100644 --- a/src/@ionic-native/plugins/web-intent/index.ts +++ b/src/@ionic-native/plugins/web-intent/index.ts @@ -147,12 +147,13 @@ export class WebIntent extends IonicNativePlugin { getUri(): Promise { return; }; /** + * Returns the content of the intent used whenever the application activity is launched * @returns {Observable} */ @Cordova({ observable: true }) - onNewIntent(): Observable { return; }; + onIntent(): Observable { return; }; /** * Sends a custom intent passing optional extras @@ -175,12 +176,6 @@ export class WebIntent extends IonicNativePlugin { @Cordova({ sync: true }) unregisterBroadcastReceiver(): void { } - /** - * Returns the content of the intent used whenever the application activity is launched - */ - @Cordova({ sync: true }) - onIntent(): void { } - /** * */