I am developing messenger with webrtc calls using react-native and onesignal.
Currently, when there is an incoming call, app receives notification and user must click on notification to open answer screen. This is very inconvenient, i want to make the answer screen open automatically when phone received notification, like as Whatsapp or Viber.
I already tried put something like this.props.navigation.navigate('CallPage')
to onReceive(notification)
handler, but it works only if app is on foreground.
If it's possible to make this using react-native, please give advice