react-native-webrtc / react-native-webrtc/react-native-callkeep
DisplayIncomingCall not working in Android when APP is in Killed state.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 511
- Avg merge
- 9h 12m
- Merged PRs (30d)
- 2
Description
Bug report
-
I've checked the example to reproduce the issue.
-
Reproduced on:
-
[ y ] Android
-
iOS
Description
I am trying to make a app using audio video call feature. I have used the React-native-callkeep to inform the reciever about the call.
flow of the call goes like : when caller hit the call initiate button reciever gets an FCM Push notification with data to join the Room
I want to awake the reciever screen when reciever App is in killed state. for which I'm using react-native-callkeep.
I'm calling displayIncomingCall() function to awake the screen it is working fine in IOS but not working in Android when App is in killed state.
//function to call the incoming call screen
export const Display = async (uuid, handle, localizedCallerName) =>{
RNCallKeep.displayIncomingCall(uuid,handle,localizedCallerName)
}
// inside index.js
messaging().setBackgroundMessageHandler(async(data) => {
if (data.data?.description == "audio" || data.data?.description == "video") {
Platform.OS == "android" ? Display("11edc52b-2918-4d71-9058-f7285e29d894","Shadowz Calling", data?.data?.sent_by_name) : Display("11edc52b-2918-4d71-9058-f7285e29d894","Shadowz Calling", data?.data?.sent_by_name,"number","false") } })
Steps to Reproduce
Versions
- Callkeep: 4.3.8
- React Native: 0.67
Logs
Paste here
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with index.js, the setBackgroundMessageHandler callback, and the Display wrapper around RNCallKeep.displayIncomingCall. Reproduce the FCM notification flow on Android with the app killed and compare it with the working iOS behavior. Done means the incoming call screen is displayed for audio or video notifications while the Android app is killed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, firebase, javascript, react-native
- Domain
- audio-video-rtc, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100