facebook / facebook-android-sdk

Used to integrate Android apps with Facebook Platform.
https://developers.facebook.com/docs/android
Other
6.07k stars 3.64k forks source link

Can't disable auto init #1198

Open vokruttabtale opened 10 months ago

vokruttabtale commented 10 months ago

Checklist before submitting a bug report

Java version

1.8.0.291

Android version

API 28, Android 9

Android SDK version

16.1.3

Installation platform & version

gradle

Package

Core & AppEvents

Goals

Disable Automatic SDK Initialization

Expected results

Facebook SDK doesn't try automatic initialization on app start

Actual results

The error on the app start what means auto initialization still active

Failed to auto initialize the Facebook SDK
A valid Facebook app id must be set in the AndroidManifest.xml or set by calling FacebookSdk.setApplicationId before initializing the sdk.

Steps to reproduce

  1. Add to Manifest file tag <meta-data android:name="com.facebook.sdk.AutoInitEnabled" android:value="false"/>
  2. Run the app

Code samples & details

// INSERT YOUR CODE HERE