diff --git a/android/src/main/java/com/timesafari/dailynotification/PermissionManager.java b/android/src/main/java/com/timesafari/dailynotification/PermissionManager.java index 88fd341..206671d 100644 --- a/android/src/main/java/com/timesafari/dailynotification/PermissionManager.java +++ b/android/src/main/java/com/timesafari/dailynotification/PermissionManager.java @@ -194,6 +194,15 @@ public class PermissionManager { result.put("channelEnabled", channelManager.isChannelEnabled()); result.put("channelImportance", channelManager.getChannelImportance()); + // Add UI-friendly field names for compatibility + // notificationsEnabled = postNotificationsGranted AND notificationsEnabledAtOsLevel + boolean postNotificationsGranted = result.getBoolean("postNotificationsGranted", false); + boolean notificationsEnabledAtOsLevel = result.getBoolean("notificationsEnabledAtOsLevel", false); + result.put("notificationsEnabled", postNotificationsGranted && notificationsEnabledAtOsLevel); + // exactAlarmEnabled = exactAlarmGranted + boolean exactAlarmGranted = result.getBoolean("exactAlarmGranted", false); + result.put("exactAlarmEnabled", exactAlarmGranted); + call.resolve(result); } catch (Exception e) {