Skip to content

React Context Lost After Call Accept From Lock Screen In Production #76

@hevi08

Description

@hevi08

In production builds, the React Context is lost when the user accepts an incoming call from the lock screen and app is in killed state.

Here is how i am using this library,

  • FCM Push Notification is received
  • RNCallKeep is initialized and events are registered
  • RNNotificationCall events are registered
  • RNNotificationCall.displayNotification is called
  • The app shows the incoming call UI on the lock screen
  • As soon as I accept the call and unlock the screen (with a password), the app opens with a fresh state

At this point, I lose the static instance and data inside the RNCallKeep class, which contains required information for the ongoing call.

This issue does not happen if the app is launched from a killed state and the screen is already unlocked before the FCM notification is received.

If i am using only FCM, and open ongoing call screen from lock screen it opens without losing state.

Also, is there anyway i can test lock screen and app killed state behaviour in dev mode ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions