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

Login without Facebook app installed doesn't work appcompat v1.5.0

Open baole opened this issue 1 year ago • 9 comments

Checklist before submitting a bug report

Java version

11

Android version

Android 11, 12

Android SDK version

Facebook SDK version: 6.11.0.1, Android SDK level 32

Installation platform & version

Gradle

Package

Login

Goals

  • Click the login button
  • Open a ChromeTab and login with Facebook account
  • Click "Continue" button to approve the login

Expected results

After clicking the "Continue" button on the "Log in with Facebook" ChromeTab screen, it's expected to go back to the app and continue the login flow in the app.

Actual results

There is an actively invisible activity. When tap the "Back" button, that activity is close, but the login flow is cancelled.

Steps to reproduce

No response

Code samples & details

It works with

  • androidx.appcompat:appcompat:1.4.2
  • androidx.activity:activity-ktx:1.5.0
  • androidx.fragment:fragment-ktx:1.5.0
  • androidx.lifecycle:lifecycle-runtime-ktx:1.5.0

But doesn't work with

  • androidx.appcompat:appcompat:1.5.0
  • androidx.activity:activity-ktx:1.5.1
  • androidx.fragment:fragment-ktx:1.5.1
  • "androidx.lifecycle:lifecycle-runtime-ktx:1.5.1

which requires to use with Android SDK level 33. So this issue blocks us to upgrade to Android SDK level 33

baole avatar Aug 12 '22 10:08 baole

#1095 related?

niusounds avatar Aug 15 '22 03:08 niusounds

I am facing this issue. Please take care of this.

HQHAN avatar Aug 22 '22 01:08 HQHAN

Does anyone know of any workaround?

ColtonIdle avatar Aug 22 '22 07:08 ColtonIdle

I have reverted these libraries (appcompat was already 1.4.2)

  • activity to 1.5.0
  • fragment to 1.5.0
  • lifecycle to 2.5.0
  • navigation to 2.5.0

it works.

niusounds avatar Aug 22 '22 07:08 niusounds

@niusounds Can you leave a comment how you reverted those libraries?

HQHAN avatar Aug 22 '22 07:08 HQHAN

I put this at the bottom of my app build.gradle.kts file and everything started working again. 💯

configurations.all {
  resolutionStrategy {
    force("androidx.activity:activity-compose:1.5.0")
    force("androidx.activity:activity:1.5.0")
  }
}

ColtonIdle avatar Aug 22 '22 10:08 ColtonIdle

I put this at the bottom of my app build.gradle.kts file and everything started working again. 💯

configurations.all {
  resolutionStrategy {
    force("androidx.activity:activity-compose:1.5.0")
    force("androidx.activity:activity:1.5.0")
  }
}

This just saved our release 🙇

slott avatar Aug 26 '22 14:08 slott

seems to be fixed. https://github.com/facebook/facebook-android-sdk/commit/d7d4e0d241ea4f9e7035fb12b87b249a10e9af36 https://github.com/facebook/facebook-android-sdk/releases/tag/sdk-version-14.1.0

matsudamper avatar Aug 31 '22 03:08 matsudamper

same as #1095

niusounds avatar Sep 02 '22 14:09 niusounds