facebook-android-sdk icon indicating copy to clipboard operation
facebook-android-sdk copied to clipboard

FacebookSDK publishInstallAsync Fails (ANR: applicationContext null)

Open DJDrama opened this issue 1 year ago • 1 comments

Checklist before submitting a bug report

Java version

1.8

Android version

API 23

Android SDK version

6.0.1

Installation platform & version

Gradle

Package

Core & AppEvents

Goals

Fix ANR Issue, applicationContext should not be null.

Expected results

No ANR, non-null applicationContext.

Actual results

Fatal Exception: java.lang.NullPointerException applicationContext must not be null

com.facebook.FacebookSdk.publishInstallAsync$lambda-15 (FacebookSdk.kt:636)

Steps to reproduce

Actually, we did not update Facebook SDK version yet(We are using v13.1.0)

  1. ApplicationId and ClientToken is inside our AndroidManifest.xml
  2. AutoLogAppEventsEnabled, AutoInitEnabled, AdvertiserIDCollectionEnabled is set to true inside our AndroidManifest.xml

Code samples & details

// INSERT YOUR CODE HERE

DJDrama avatar Jun 28 '22 03:06 DJDrama

I got the same problem that the application can not report the install event Is anybody can help me fix this problem ? so thanks who answer me。

shuaiyinoo avatar Jul 05 '22 06:07 shuaiyinoo