mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-07 23:03:19 +08:00
feat(localNotifications): added register and has permission functions (#536)
This commit is contained in:
parent
23fc908eb6
commit
c83b0437fa
@ -195,6 +195,20 @@ export class LocalNotifications {
|
|||||||
@Cordova()
|
@Cordova()
|
||||||
static getAllTriggered(): Promise<Array<Notification>> { return; }
|
static getAllTriggered(): Promise<Array<Notification>> { return; }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register permission to show notifications if not already granted.
|
||||||
|
* @returns {Promise} Returns a promise
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
static registerPermission(): Promise<boolean> { return; }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Informs if the app has the permission to show notifications.
|
||||||
|
* @returns {Promise} Returns a promise
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
static hasPermission(): Promise<boolean> { return; }
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets a callback for a specific event
|
* Sets a callback for a specific event
|
||||||
|
Loading…
Reference in New Issue
Block a user