Open jagould2012 opened 4 years ago
As a work around, I'm using the react-native-device-info
module to detect phones, but not a great solution as I think there may be devices that come back as Handset
that still might cause this issue
if(await RNCallKeep.supportConnectionService() && getDeviceType() == 'Handset')
{
//setup CallKeep
}
Bug report
[x ] I've checked the example to reproduce the issue.
Reproduced on:
Description
https://github.com/react-native-webrtc/react-native-callkeep/commit/6c18fdf5c7f183d8befb960bf6e1f79a86c9e2e8
I think this still has an issue.
getPhoneAccount(handle)
can return null, even whentelecomManager
is not null, causing isEnabled to be called on a null object.Should be:
Steps to Reproduce
Try to call setup on a device that has ConnectionService, but not PhoneAccount (any tablet with SDK > 23)
hasPhoneAccount
cannot be used gracefully to detect this configuration as it crashes itself.supportConnectionService
returns true on these devices.Versions
Logs