-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call not coming when app is in background in iOS #167
Comments
Please provide code examples of what you are doing. Make sure that your voip push certificate is proper. |
My voip push certificate is proper I think, because I have received the call when my app is on foreground..but don't receive the call when I have terminated the app..for code example what you want to check? should I post the call screen page where I will implemented the call listeners? |
@jdegger sir, |
Hi @suny2talk what @jdegger is asking you to do is to add more information to the issue so we can understand what is going on. The more context you provide around this issue the faster the community can help you Did you follow all the instructions as specified in the Twilio Quickstart repositories? Step to reproduce Advanced: How are you handling the react-native-twilio-programmable-voice on the javascript side of things? |
@fmonsalvo , Did you follow all the instructions as specified in the Twilio Quickstart repositories?
What version of React Native are you running?
What version of react-native-twilio-programmable-voice are you running?
What device are you using? (e.g iOS10 simulator, Android 7 device)?
Is your app running in foreground, background or not running?
Is there any relevant message in the log?
If using iOS, which pod version are you using?
My phone dialler screen code below, |
I expect this is a bug with our repo or with the docs we are providing with the repo. The actual error you are facing is:
However, we are currently not facing this issue in our own app. I will try and see if we can find the difference between our app and your implementation. |
@jdegger , Anyway, in terminated state CallKit not working this is the main issue.. |
@suny2talk Are you sure you have these background modes selected in your app's capabilities? |
@TheRohitSharma , |
@jdegger , |
I have realized that issue is very easy to reproduce: you need to request twilio token from server each time you launch the app const token = await api.getToken()
TwilioVoice.initwithToken(token)
TwilioVoice.configureCallKit(...) This way RNTwilioVoice.initPushRegistry will only be called after you receive the token from the backend and by that time iOS can kill the app. My workaround allows calling RNTwilioVoice.initPushRegistry and configureCallKit from objective-c without relying on the JS code and having the token |
I'm also facing the same issue. Sometimes I receive call in the background mode and when the app is in quit state but sometimes I don't. |
Hi, @jdegger @suny2talk Did you resolve this issue? Actually, I am facing the exact same issues. Only sometimes, I can't receive the call at the killed state. But sometimes can also receive. Can you please give me some tips? Best Regards, |
I have used TwilioVoice (5.2.1) and RNTwilioVoice (4.1.0)..My react native version is "react-native": "0.63.3",..
Received call when app is in foreground, but do not get call when the is in background in iOS 13..Please help me to do that..
Thanks
Originally posted by @suny2talk in #165 (comment)
The text was updated successfully, but these errors were encountered: