Closed jagdish24 closed 5 years ago
Hi @jagdish24
I am trying to understand the steps of how to reproduce the problem:
alice
) for incoming call notificationalice
didReceiveIncomingPushWith
method was triggered)alice
again and CallKit showed the callLet me know if the steps are correct and we can try with the sample apps as well.
Thanks -bobie
Yes exactly same..
Hi @jagdish24
I've tried the same steps, especially 3, and confirmed that for some reason the sample app failed to report the call to CallKit. We'll take a deeper look and update the sample app.
Thanks for reporting the issue. -bobie
Hi Bobie
I am facing the same issue. 1: App is terminated. 2: PushKit's didReceiveIncomingPushWith payload is triggered 3: Control is passed to TwilioVoice by calling TwilioVoice.handleNotification(payload, delegate: self) 4: After step 3 none of the delegate methods of TVONotificationDelegate are triggered.
Kindly Help. Thanks in advance.
Regards -rohit
Hi Bobie,
Let me give you one more troubleshoot point.
After termination of app,
when client receive any call on didReceiveIncomingPushWith
method,
after 2-3 seconds it trigger to this below method.
func pushRegistry(_ registry: PKPushRegistry, didUpdate credentials: PKPushCredentials, forType type: PKPushType) {
I guess issue with accessToken storage.
Hope it helps to solve.
Thanks.
Hi @jagdish24
I tried to fix the issue and found that if the app was terminated and re-launched by the incoming push, the didReceiveIncomingPushWith
callback doesn't seem to be called on the main queue, and the completion()
line is not able to acknowledge to PushKit on the right queue.
I tried calling the completion by doing:
DispatchQueue.main.async {
completion()
}
and the call is properly showed with the steps.
Let me know if this helps. -bobie
Hi Bobie
Tried this but no luck. Any other possible solutions.
Regards Rohit
Although I don't think it's because of notification delivery failure, it's probably worth of looking at the system Console app and check the logs of the device and see if the notification is delivered correctly. You can connect your device to the machine and launch the Console application, and then select the device from the left panel.
Hi Bobie
Here are the console logs taken from Console app. Name of App where TwilioVoice is being used is "CourtBuddy" and bundle identifier is "Com.Courtbuddy.Courtbuddy"
default 12:04:21.207326 +0530 callservicesd Invalidating process assertion for bundle ID
default 12:04:26.622623 +0530 callservicesd [WARN] No paired device, so unable to send message UpdateCallContext
default 12:04:26.622714 +0530 callservicesd <==
I am facing very wired bug in Voice Quick start Swift.
I tested few times and got the exact scenario,
I never receive call in inactive mode of app if i terminated app, After dialing once i am start to receive call.
while first time after terminating app from background tray, I receive call notification but callkit not fired and after few seconds debug triggered to
once it done, and i call again everything works fine.
this is happening in demo code of swift as well as objective c