READ_PHONE_STATE permission is needed, on versions built targeting API level 31 can react appropriately to incoming and outgoing calls. In case the permissions are not granted, to prevent a crash, validations of current version were added.
How should this be manually tested?
Configure following versions:
Android API >= 31;
OpenTok >= 2.22.0
Run samples mentioned below on Android Studio:
Advanced Audio Driver Java;
Advanced Audio Driver Kotlin;
Phone Call Detection Java;
Phone Call Detection Kotlin;
For each one, verify if when connecting and publishing using Playground, the app does not crash.
What is this PR doing?
READ_PHONE_STATE permission is needed, on versions built targeting API level 31 can react appropriately to incoming and outgoing calls. In case the permissions are not granted, to prevent a crash, validations of current version were added.
How should this be manually tested?
Configure following versions:
Run samples mentioned below on Android Studio:
For each one, verify if when connecting and publishing using Playground, the app does not crash.
What are the relevant tickets? OPENTOK-47720