diff --git a/src/plugins/localnotifications.ts b/src/plugins/localnotifications.ts index 389d907b9..7912e7fa4 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