haroon_dev
haroon amjad 5 hours ago
parent 2175ff0784
commit f4b019f822

@ -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();

@ -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),
),
);

Loading…
Cancel
Save