You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 15, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 15, 2024. It is now read-only.
TypeError: null is not an object (evaluating 'ReactNativeFlurry.initBuilder') #44
Describe the bug
In index.js where we init the builder results in a crash.
Error message: TypeError: null is not an object (evaluating 'ReactNativeFlurry.initBuilder')
which then crashes the app with
When we uncomment the flurry builder, it works.
We have used flurry for a long time with no issues.
This Bug is About
Please choose the closest item by replacing [ ] with [x].
Integration
[x ] Analytics
Messaging/Push
Remote Configuration
Flurry Website/Dashboard
Other
Platform
Please choose the platform(s) that you are having the issue by replacing [ ] with [x].
Android
[ x] iOS
tvOS
Environment
Please tell us the versions of SDKs you are using. If you are not sure about React Native version, you can run react-native --version under your project.
React Native version: "0.69.5",
react-native-flurry-sdk version: "7.3.0",
To Reproduce
Steps to reproduce the behavior:
create react native project
in the index js, init the builder
new Flurry.Builder()
.withCrashReporting(true)
.withLogEnabled(true)
.withLogLevel(Flurry.LogLevel.DEBUG)
.build(FLURRY_ANDROID_API_KEY, FLURRY_IOS_API_KEY);
Error message: TypeError: null is not an object (evaluating 'ReactNativeFlurry.initBuilder')
app crashes with invariant view error.
"""
Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
"""
When we uncomment the flurry builder, everything works well.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Are you using Flurry Push/Messaging? No
(iOS) Are you using CocoaPods for React Native integration? Yes
@sansavision Thanks for the info!
There is a known issue in the iOS native version 12.0.0. While we are working on the solution, could you please go back to use react-native-flurry-sdk versions 7.1.1? And please let us know whether it resolves your issue or not. Thanks!
Figured out what the problem was. For some reason the sdk was not automatically installed with pod install, I had to manually add it: pod 'react-native-flurry-sdk', :path => '../node_modules/react-native-flurry-sdk/ios' in the pod file.
But now the latest version works.
I suggest you check if this is a common issue or maybe it was a limited issue with my specific build.
Cheers
Looks like newer React Native's Autolinking is no longer working here! It only looks up the .podspec file at the project root folder (ignores the ios subfolder).
Activity
poting-oath commentedon Sep 14, 2022
@sansavision Are you using Expo?
Please refer to #31
sansavision commentedon Sep 15, 2022
Hi
No we are not using expo.
poting-oath commentedon Sep 15, 2022
@sansavision Do you have the same issue for Android?
Issue did not happen for the previous react-native-flurry-sdk versions?
sansavision commentedon Sep 15, 2022
I remember it working on older versions.
No problem with the android version.
poting-oath commentedon Sep 16, 2022
@sansavision Thanks for the info!
There is a known issue in the iOS native version 12.0.0. While we are working on the solution, could you please go back to use react-native-flurry-sdk versions 7.1.1? And please let us know whether it resolves your issue or not. Thanks!
sansavision commentedon Sep 16, 2022
@poting-oath ok, i will try it and let you know. Thanks.
sansavision commentedon Sep 18, 2022
Figured out what the problem was. For some reason the sdk was not automatically installed with pod install, I had to manually add it: pod 'react-native-flurry-sdk', :path => '../node_modules/react-native-flurry-sdk/ios' in the pod file.
But now the latest version works.
I suggest you check if this is a common issue or maybe it was a limited issue with my specific build.
Cheers
poting-oath commentedon Oct 17, 2022
Looks like newer React Native's Autolinking is no longer working here! It only looks up the
.podspecfile at the project root folder (ignores theiossubfolder).poting-oath commentedon Oct 25, 2022
@sansavision Fix is released in version 8.0.0. Thanks for your help!