[verified] feat: follow phone Do Not Disturb for notification wake

This commit is contained in:
MasterControl committed 2026-11-11 17:43:35 +00:00
1 parent 54ba6b4f10
commit 9ca3574ae7
14 files changed
+574 -20

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import { Utils } from "@nativescript/core";
declare const com: any;
/** Read the phone's current interruption filter; never change its DND policy. */
export function isPhoneDoNotDisturbEnabled(): boolean {
if (!global.isAndroid) return false;
try {
return Boolean(com.faceclaw.app.FaceclawMediaNotificationListenerService.isPhoneDoNotDisturbEnabled(
Utils.android.getApplicationContext(),
));
} catch {
return false;
}
}