Closed ArturV93 closed 7 months ago
Hi @ArturV93 ,
This error below suggests that you are missing the dependency of react-native-get-random-values@
:
com.facebook.react.common.JavascriptException: Error: Native module not found, js engine: hermes, stack:
getRandomBase64@1:7466513
This requirement has been introduced in react-native-daily-js 0.53.0:
react-native-get-random-values@^1.9.0
module in React Native applications.It would also be nice make to update to the latest version of react-native-webrtc:
"@daily-co/react-native-webrtc": "^118.0.3-daily.2",
Thank you @filipi87, it works now. You can close this issue.
Describe the bug (unexpected behavior)
After updating the above packages from:
"@daily-co/react-native-daily-js": "^0.50.0", "@daily-co/react-native-webrtc": "^111.0.0-daily.2" to: "@daily-co/react-native-daily-js": "^0.60.0", "@daily-co/react-native-webrtc": "^118.0.3-daily.1",
I updated the AndroidManifest.xml and Info.plist according to the documentation for the latest package. The app runs smoothly when built on my local machine, but on Bitrise, although the app builds successfully, it crashes immediately upon launch. Downgrading to versions 0.50.0 and 111.0.0 resolves the issue, and the app behaves as expected. However, when it crashes, Sentry fails to capture any logs. I suspect there might be undocumented differences between these two packages. The code I've implemented closely resembles that of react-native-daily-js-playground. Any advice on resolving this issue would be greatly appreciated.
System information
"react-native": "^0.73.4", "react-native-background-timer": "^2.4.1", "@react-native-async-storage/async-storage": "^1.19.3",
Android: buildToolsVersion = "34.0.0" minSdkVersion = 24 compileSdkVersion = 34 targetSdkVersion = 34
iOS: platform: ios, 13.4
Additional context
FATAL EXCEPTION: mqt_native_modules
Unknown
FATAL EXCEPTION: mqt_native_modules Process: *, PID: 32053 com.facebook.react.common.JavascriptException: Error: Native module not found, js engine: hermes, stack: getRandomBase64@1:7466513 getRandomValues@1:7466865 getRandomByte@1:7542420 anonymous@1:7542445 uuid4@1:7542341 generatePropagationContext@1:7578859 Scope@1:7579978 _callSuper@1:7896982 ReactNativeScope@1:7897432 init@1:7893550 anonymous@1:1079692 loadModuleImplementation@1:173769 guardedLoadModule@1:173311 metroRequire@1:172933 anonymous@1:179975 loadModuleImplementation@1:173769 guardedLoadModule@1:173268 metroRequire@1:172933 global@1:172485