react-native-webrtc / react-native-callkeep

iOS CallKit framework and Android ConnectionService for React Native
ISC License
923 stars 445 forks source link

iOS 16 app is not opening after answering in lockscreen #736

Closed sametcl2 closed 1 year ago

sametcl2 commented 1 year ago

In iOS 16 and above, the app does not open after answering the call. When I tried in iOS 15.7, it opened the app after answering the call.

neetable-abhilash commented 1 year ago

Iam facing the same issue need urgent help. For me it's working sometimes but frequently not working.

sametcl2 commented 1 year ago

I am facing the same issue need urgent help. For me it's working sometimes but frequently not working.

Me too, it worked correctly a couple of times but mostly did not work.

neetable-abhilash commented 1 year ago

I am facing the same issue need urgent help. For me it's working sometimes but frequently not working.

Me too, it worked correctly a couple of times but mostly did not work.

seems like there is an issue with answerCall() sometimes not getting triggered when app is in background.

sametcl2 commented 1 year ago

I am facing the same issue need urgent help. For me it's working sometimes but frequently not working.

Me too, it worked correctly a couple of times but mostly did not work.

seems like there is an issue with answerCall() sometimes not getting triggered when app is in background.

Have you found any solution? Looks like there is a problem with iOS 16.

neetable-abhilash commented 1 year ago

Try registering the events in main screen it worked for me.

sametcl2 commented 1 year ago

Try registering the events in main screen it worked for me.

Actually, I couldn't get the idea of registering events on main screen. it's OK on iOS 15.7?

sametcl2 commented 1 year ago

@manuquentin @ianlin @aarkalyk Hi, do you have any idea about this problem?

MinhThu100200 commented 1 year ago

I am also facing this issue. =(((

MinhThu100200 commented 1 year ago

@manuquentin @ianlin @aarkalyk Hi, do you have any idea about this problem?

hi, I found my issue because when client answer call immediately I call endCall event to turn off default call screen and naviagte to my callscreen in my application. So I change my flow after navigation to my callscreen, I will call endCall event. It work for me

shivo-ham commented 1 year ago

working in Iphone8 but not working in Iphone12 @sametcl2

sametcl2 commented 1 year ago

@shivo-ham  Actually, I moved voip code to js side from the native side. After that, I controlled endCall event like @MinhThu100200. My issue seems resolved after these.

shivo-ham commented 1 year ago

@sametcl2 do you mean about native code? native side.

shivo-ham commented 1 year ago

@sametcl2 My app is not opening in a killed state when the user accepts the call

shivo-ham commented 1 year ago

@sametcl2 Did you also add Voip notifications to CallKeep?

sametcl2 commented 1 year ago

@shivo-ham yes native side, you should use voip notifications with callkeep

shivo-ham commented 1 year ago

OK Thanks

shivo-ham commented 1 year ago

@sametcl2 VoIP call is also not working for me, Can you please check this link, I have raised an issue in stackoverflow

https://stackoverflow.com/questions/77414647/react-native-voip-push-notification-app-doesnt-launch-after-accepting-a-call