mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 18:49:43 +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; }
|
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>}
|
* @returns {Promise<boolean>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
registerPermission(): Promise<boolean> { return; }
|
requestPermission(): Promise<boolean> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Informs if the app has the permission to show notifications.
|
* Informs if the app has the permission to show notifications.
|
||||||
|
Loading…
Reference in New Issue
Block a user