[Android] react-native-fbsdk 1.1.2 / 2.0.0 , RN 0.61.5 NullPointerException at com.facebook.marketing.CodelessActivityLifecycleTracker$1.onActivityPaused #750
Comments
Seems related to #699 , probably it should be fixed on 1.1.2 but it is still happening. |
Can you try 2.0.0, it updates facebook sdk to v7.0. |
@janicduplessis thanks for the reply. We've upgraded to 2.0.0, I could check that iOS pods are now using FBSDKCore/Share/Login 7.0, but we are still seeing crashs for production users on Android (hundreds per day). Same stack trace, happens on several devices on Android 9.0 Pie. The react-native-fbsdk is used only for attribution / deferred app links. We also use AppEventsLogger which seems to work fine on both platforms. More info about the Android config: package.json MainApplication.java (no change, guess shouldn't add FBSDKPackage to getPackages() because of autolink) build.gradle, settings.gradle (no change, guess shouldn't add include/project/implementation 'react-native-project-fbsdk' because of autolink strings.xml (facebook_app_id properly set) AndroidManifest.xml |
@janicduplessis any clue? |
@erisvaldojunior were you able to resolve it? |
@Hamawis not yet, unfortunately. |
@erisvaldojunior |
I fixed this by upgrading fbsdk version to 2.0.0. So no more crashes reported. |
We're still seeing these issues in production on fbsdk 2.0.0, RN v0.61.5. @Hamawis can you share what version of react-native you are using as well? Anyone else have v2.0.0 fix their issue? If so, do you mind sharing the RN version you're currently using? Think our next steps are going to be trying to update to 0.63.2 |
Found our issue. We had previously been on a RN version < 0.60.0, so we had manually applied the facebook dependencies in our build.gradle to point to have |
Will close as I think this is not related to this library and the crash comes from an old version of the facebook android sdk. If you are seeing this issue make sure you don't specify |
Hi! Looks like this method not works, because we still receive a lot of expections. |
|
Having a lot of crashes with production users (RN 0.61.5, react-native-fbsdk). Integration seems to work fine and no crashes on iOS, only Android. Wasn't able to replicate it locally but Google Play Console shows tons of it.
PS: integration was made following github README instructions, no manual changes to gradle or MainApplication.java, just yarn add react-native-fbsdk , AndroidManifest.xml, strings.xml as suggested. Any ideas?
Originally posted by @cihati in facebook/react-native#24498 (comment)
The text was updated successfully, but these errors were encountered: