Skip to content

Answer events lost when app launched from killed state - has anyone encountered this? #844

@lo1kek

Description

@lo1kek

Problem

Has anyone encountered an issue where answerCall events are lost when the app is launched from a killed state via VoIP push?

Scenario

  1. App is completely killed (not in background)
  2. VoIP push arrives → CallKit interface appears immediately
  3. User taps "Answer" quickly (within first few seconds)
  4. Bundle is still loading/initializing
  5. answerCall event is never received by RNApp

Why we need the answer event

We need to detect when user answers to notify our server that the client is ready to receive a SIP INVITE. Our flow is:

  1. User answers → Send "ready" signal to server
  2. Server receives "ready" → Initiates SIP INVITE
  3. SIP connection established

Without the answer event, we can't notify the server, so the SIP call never gets initiated.

Question

  • Has anyone experienced this issue with early answer events?
  • Are there recommended patterns for handling CallKit events when RNApp isn't ready yet?
  • Should events be buffered somehow until the JS bridge is fully initialized?

The issue only happens when app is killed and VoIP push launches it. When app is already running (background or foreground), answer events work perfectly.

Any insights would be appreciated!

Environment

  • iOS: Testing on physical devices

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions