Implemented the Android notification-privacy part of Phase 1:
This commit is contained in:
@@ -5,6 +5,8 @@ const EpMail = registerPlugin('EpMail');
|
||||
if (Capacitor.isNativePlatform() && Capacitor.getPlatform() === 'android') {
|
||||
window.daybreakMail = {
|
||||
getAppVersion: () => EpMail.getAppVersion().then(result => result.version),
|
||||
getNotificationPrivacy: () => EpMail.getNotificationPrivacy(),
|
||||
setNotificationDetails: enabled => EpMail.setNotificationDetails({ enabled }),
|
||||
getAccount: () => EpMail.getAccount(),
|
||||
listAccounts: () => EpMail.listAccounts(),
|
||||
selectAccount: id => EpMail.selectAccount({ id }),
|
||||
|
||||
Reference in New Issue
Block a user