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 ?
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,
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 ?