From c83b0437fa0c7587d20b74bf47e76de870d6be21 Mon Sep 17 00:00:00 2001 From: Andrew Mitchell Date: Tue, 13 Sep 2016 07:10:14 -0500 Subject: [PATCH] feat(localNotifications): added register and has permission functions (#536) --- src/plugins/localnotifications.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/plugins/localnotifications.ts b/src/plugins/localnotifications.ts index 389d907b..7912e7fa 100644 --- a/src/plugins/localnotifications.ts +++ b/src/plugins/localnotifications.ts @@ -195,6 +195,20 @@ export class LocalNotifications { @Cordova() static getAllTriggered(): Promise> { return; } + /** + * Register permission to show notifications if not already granted. + * @returns {Promise} Returns a promise + */ + @Cordova() + static registerPermission(): Promise { return; } + + /** + * Informs if the app has the permission to show notifications. + * @returns {Promise} Returns a promise + */ + @Cordova() + static hasPermission(): Promise { return; } + /** * Sets a callback for a specific event