Merge pull request #2205 from JKH4/master

ref(local-notifications): Replace registerPermission by requestPermission
This commit is contained in:
Daniel Sogl 2018-03-16 18:18:19 +01:00 committed by GitHub
commit 72d78ec729
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.