From cab0c79f574b1701e6e7015ded70ff01d6d384c5 Mon Sep 17 00:00:00 2001 From: sravan Date: Mon, 28 Sep 2026 18:53:06 +0530 Subject: [PATCH] Android calls: single-source ring (fix double-ring), drop battery dialog, add wake logging On-device (OnePlus, build 5cb3d0c): new ring UI confirmed; backgrounded rang twice (channel sound + activity ringtone, and both wake paths raised it); battery dialog deemed unprofessional (WhatsApp/Teams don't prompt it). - Double-ring: notification channel is now SILENT (new id bzc_incoming_calls_v2, no sound/vibration, onlyAlertOnce) so IncomingCallActivity is the single ring source (looping ringtone + vibrator). showIncoming dedups atomically (if(!active.add(uuid)) return) so the FCM push and WebSocket paths can't both ring the same call. - Battery dialog removed: dropped requestCallReliability (web call + plugin method) and REQUEST_IGNORE_BATTERY_OPTIMIZATIONS permission. - Logging: Log.i(bzcall, ...) across the wake chain to diagnose swiped-away (OnePlus force-kills on swipe and blocks FCM cold-start). Co-Authored-By: Claude Opus 4.8 --- .../android/src/main/AndroidManifest.xml | 3 -- .../nativecall/BzCallMessagingService.java | 4 +++ .../bizgaze/connect/nativecall/CallStore.java | 33 ++++++++++--------- .../nativecall/IncomingCallActivity.java | 27 ++++++++++++--- .../connect/nativecall/NativeCallPlugin.java | 29 ---------------- server/public/home.html | 3 -- 6 files changed, 44 insertions(+), 55 deletions(-) diff --git a/mobile/plugins/native-call/android/src/main/AndroidManifest.xml b/mobile/plugins/native-call/android/src/main/AndroidManifest.xml index b43d522..b766b27 100644 --- a/mobile/plugins/native-call/android/src/main/AndroidManifest.xml +++ b/mobile/plugins/native-call/android/src/main/AndroidManifest.xml @@ -6,9 +6,6 @@ - -