-
Notifications
You must be signed in to change notification settings - Fork 90
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
Null check operator on P2PClient.init #358
Comments
you should initialize P2PClient only after successful login to the chat. P2PClient uses the chat connection for signaling exchange and it won't work without the chat connection. it is not required for displaying CallKit or rejecting the call, but it is required for accepting the call and the next signaling packeges. |
@TatankaConCube I did try to initialize this connecting but I couldn't get it to work either.
But this gave me a 403 no token provided |
no, it is just the creation of the subscription on the push notifications, and yes, you need to create the API session with a user first (to identify what the user is subscribing to) in our sample, we do the chat login here https://github.com/ConnectyCube/connectycube-flutter-samples/blob/master/p2p_call_sample/lib/src/login_screen.dart#L141 but you can do it anywhere you need. |
@TatankaConCube Do I have to use startCall from the sdk to get the callkit working in the background or in terminated state? I'm trying to do this using firebase but then i need to initialize all the stuff again: init to chat, events and subscription etc |
It depends on what do you need. |
Specify the sample to which the issue belongs (use [x]):
[] Chat sample
[x] P2P Calls sample
[] Conference Calls sample
Platform (use [x])
[x] Android
[] iOS
[] macOS
[] Windows
[] Web
[] Linux
Describe the bug:
I'm trying to just get the callkit working to display incoming calls and do custom code on accept and decline etc. The incoming call needs to be shown at any time whether the app is in foreground, background or terminated. Now the problem I'm having is that I get an error while initializing the package: Null check operator used on a null value. Which is in
#0 RTCSignalingProcessor.addSignalingCallback rtc_signaling_processor.dart:172
#1 P2PClient.init.
My main.dart looks like this:
The text was updated successfully, but these errors were encountered: