mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 16:52:53 +08:00
Merge pull request #2205 from JKH4/master
ref(local-notifications): Replace registerPermission by requestPermission
This commit is contained in:
commit
72d78ec729
@ -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