Skip to content

Commit 9a12065

Browse files
authored
fix: await reportNewIncomingCall in background FCM handler (#1001)
Without await the Pigeon IPC Future was fire-and-forget — the background isolate was destroyed before the call reached the Kotlin side, so PhoneConnectionService.startIncomingCall() was never invoked and the incoming call UI never appeared.
1 parent 35a5fb3 commit 9a12065

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/bootstrap.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ Future<void> _handleBackgroundMessage(RemoteMessage message, Logger logger) asyn
302302
// due to concurrent database access from multiple isolates.
303303
final displayName = await _resolveContactDisplayNameWithFallback(appPush, logger);
304304

305-
AndroidCallkeepServices.backgroundPushNotificationBootstrapService.reportNewIncomingCall(
305+
await AndroidCallkeepServices.backgroundPushNotificationBootstrapService.reportNewIncomingCall(
306306
appPush.call.id,
307307
CallkeepHandle.number(appPush.call.handle),
308308
displayName: displayName,

0 commit comments

Comments
 (0)