Closed harryy2510 closed 1 year ago
Hi @harryy2510 , we are using detect()
API of detect-browser
library to retrieve the browser info in DefaultBrwoserBehavior.js
. It seems for react native, the browser info from detect()
does not contain a valid value for version
, and in this cause your fix serves as a safe guard.
I just checked the implementation of detect-browser
and confirm it returns null
for version
. https://github.com/DamonOehlman/detect-browser/pull/137/files
I'll add your fix to our library. Thanks for sharing this with us!
Duplicate of #1856 .
Hi! š
Firstly, thanks for your work on this project! š
Today I used patch-package to patch
amazon-chime-sdk-js@3.14.1
for the project I'm working on.The project is based on react native and utilises
amazon-chime-sdk-js
and@aws-sdk/client-chime-sdk-messaging
for chat. While initializing default session on react native,amazon-chime-sdk-js
throws errorCannot read property 'split' of null
when it tried to find major version of browser.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.