We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d335b5c commit 562ef2cCopy full SHA for 562ef2c
src/local-notifications.android.ts
@@ -79,7 +79,9 @@ export class LocalNotificationsImpl extends LocalNotificationsCommon implements
79
return new Promise((resolve, reject) => {
80
try {
81
// nothing to do on this platform
82
- resolve(true);
+ var context = utils.ad.getApplicationContext();
83
+ const hasPermission=NotificationManagerCompatPackageName.NotificationManagerCompat.from(context).areNotificationsEnabled();
84
+ resolve(hasPermission);
85
} catch (ex) {
86
console.log("Error in LocalNotifications.hasPermission: " + ex);
87
reject(ex);
0 commit comments