From f4b019f8228251a4ae0f8678777af890e7d4e8c5 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Sun, 1 Nov 2026 12:16:22 +0300 Subject: [PATCH] updates --- lib/core/utils/push_notification_handler.dart | 7 +++++-- lib/services/remote_config_service.dart | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/core/utils/push_notification_handler.dart b/lib/core/utils/push_notification_handler.dart index 7c8c402e..85643902 100644 --- a/lib/core/utils/push_notification_handler.dart +++ b/lib/core/utils/push_notification_handler.dart @@ -389,6 +389,9 @@ class PushNotificationHandler { ) async { try { log('🎈 example: onDidRejectIncomingCall $uuid - $callerId'); + await voIPKit.endCall(); + await voIPKit.dispose(); + await FlutterCallkitIncoming.endAllCalls(); timeOutTimer.cancel(); // Cleanup on reject with API call if (_currentCallId != null) { @@ -407,7 +410,7 @@ class PushNotificationHandler { String zoomSessionID = callerId.split("_").sublist(0, callerId.split("_").length - 1).join("_"); - await voIPKit.acceptIncomingCall(callerState: CallStateType.calling); + await voIPKit.acceptIncomingCall(callerState: CallStateType.idle); await voIPKit.callConnected(); // Cleanup on accept - cancel timer and reset flags @@ -415,7 +418,7 @@ class PushNotificationHandler { _callTimeoutTimer = null; _isCallInProgress = false; _currentCallId = null; - await Future.delayed(Duration(seconds: 2)).then((val) async { + await Future.delayed(Duration(milliseconds: 1500)).then((val) async { await voIPKit.endCall(); await voIPKit.dispose(); await FlutterCallkitIncoming.endAllCalls(); diff --git a/lib/services/remote_config_service.dart b/lib/services/remote_config_service.dart index d39a7fbe..81f57026 100644 --- a/lib/services/remote_config_service.dart +++ b/lib/services/remote_config_service.dart @@ -45,7 +45,7 @@ class RemoteConfigServiceImp implements RemoteConfigService { // Release/profile builds keep a 1-hour minimum interval — // balances timely occasion-theme rollout against not hammering // Remote Config across the whole user base. - minimumFetchInterval: kDebugMode ? Duration.zero : const Duration(hours: 1), + minimumFetchInterval: kDebugMode ? Duration.zero : const Duration(minutes: 15), ), );