Replace registerPermission by requestPermission

According to cordova-plugin-local-notifications update :
cordova.plugins.notification.local.requestPermission(function (granted) { ... });
This commit is contained in:
JKH4
2017-12-15 14:05:07 +01:00
committed by GitHub
parent 995fd56894
commit 2714bcae7e
@@ -300,11 +300,11 @@ export class LocalNotifications extends IonicNativePlugin {
getAllTriggered(): Promise<Array<ILocalNotification>> { return; }
/**
* Register permission to show notifications if not already granted.
* Request permission to show notifications if not already granted.
* @returns {Promise<boolean>}
*/
@Cordova()
registerPermission(): Promise<boolean> { return; }
requestPermission(): Promise<boolean> { return; }
/**
* Informs if the app has the permission to show notifications.