Search code examples
androidopentoktokboxphone-state-listenervideocall

Get event of phone call receive and ending while vonage opentok video call is on going?


I am working on vonage opentok video call functionality. I want to get an event of native phone call received and ending while video call is ongoing. please let me know if you found anything regarding that it will really helpful for me.

Note: I have already tried Broadcast receiver with READ_PHONE_STATE permission but it does not working in api leve 30.


Solution

  • There is a new sample in the OT samples. It should be all you need - https://github.com/opentok/opentok-android-sdk-samples/tree/main/Phone-Call-Detection