From 2714bcae7ed9f97452da1696834162c22ccc2a11 Mon Sep 17 00:00:00 2001 From: JKH4 Date: Fri, 15 Dec 2017 14:05:07 +0100 Subject: [PATCH] Replace registerPermission by requestPermission According to cordova-plugin-local-notifications update : cordova.plugins.notification.local.requestPermission(function (granted) { ... }); --- src/@ionic-native/plugins/local-notifications/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/@ionic-native/plugins/local-notifications/index.ts b/src/@ionic-native/plugins/local-notifications/index.ts index bef5c4fda..74dd1e6bf 100644 --- a/src/@ionic-native/plugins/local-notifications/index.ts +++ b/src/@ionic-native/plugins/local-notifications/index.ts @@ -300,11 +300,11 @@ export class LocalNotifications extends IonicNativePlugin { getAllTriggered(): Promise> { return; } /** - * Register permission to show notifications if not already granted. + * Request permission to show notifications if not already granted. * @returns {Promise} */ @Cordova() - registerPermission(): Promise { return; } + requestPermission(): Promise { return; } /** * Informs if the app has the permission to show notifications.