Communication icon indicating copy to clipboard operation
Communication copied to clipboard

[iOS] Not triggering calldidChangeState if using createCallAgentWithCallKitOption. And not able to accept the call in App killed state

Open yasheedv opened this issue 3 years ago • 2 comments

Describe the bug SDK Version: - AzureCommunicationCalling 1.1.0-beta.1

We are creating callAgent using the new method createCallAgentWithCallKitOptions.

We implemented VoIP push. Added Notification Hub for handling notifications. Using the registerPushNotifications method we are registering for push notification with the token generated from the didUpdate credentials PKPushRegistryDelegate method.

The VoIP push is receiving and if the app is in background or foreground everything working fine. But calldidChangeState is not called after accepting the call. And I couldn't see any methods that give information like, user rejected the call, user accepted the call from the CallKit.

If the app is killed state accepting call is not working. After receiving the VoIP push we are calling CallClient.reportToCallKit method. From the success case we will create call agent and pass the PushNotificationInfo to the callAgent using the handlePush method.

Smartphone (please complete the following information):

  • Device: iPhone XS
  • OS: iOS 14.6

yasheedv avatar Jun 13 '21 06:06 yasheedv

ADO#2491544

raosanat avatar Jun 21 '21 23:06 raosanat

@yasheedv I have been investigating this issue with our internal test-app. The reason why you see this behavior is that our SDK is not able to start the audio session. Can you please share the logs ? Also does your app have the "Background fetch" capability ?

raosanat avatar Jun 22 '21 17:06 raosanat