diff --git a/src/@ionic-native/plugins/safari-view-controller/index.ts b/src/@ionic-native/plugins/safari-view-controller/index.ts index 2112b959b1..1733fed769 100644 --- a/src/@ionic-native/plugins/safari-view-controller/index.ts +++ b/src/@ionic-native/plugins/safari-view-controller/index.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Observable } from 'rxjs/Observable'; export interface SafariViewControllerOptions { animated?: boolean; @@ -74,13 +75,14 @@ export class SafariViewController extends IonicNativePlugin { /** * Shows Safari View Controller * @param options {SafariViewControllerOptions} optional - * @returns {Promise} + * @returns {Observable} */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, + observable: true }) - show(options?: SafariViewControllerOptions): Promise { return; } + show(options?: SafariViewControllerOptions): Observable { return; } /** * Hides Safari View Controller