mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
Replace registerPermission by requestPermission
According to cordova-plugin-local-notifications update : cordova.plugins.notification.local.requestPermission(function (granted) { ... });
This commit is contained in:
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.
|
||||
|
Loading…
Reference in New Issue
Block a user