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
When the Facebook app is not installed on the device and the app uses AndroidX fragments 1.5+, the Facebook Login flow is broken and the app login Activity is being recreated on top of the existing login Activity instance. Additionally, after closing the additional Activity, the FacebookCallback.onCancel() method is called regardless the webview login and permission was successful. This makes Parse SDK returning a successful task, but with still no ParseUser logged.
Steps to reproduce
Make sure Facebook app is not installed on the device
Make sure your app uses AndroidX 1.5+ for fragment/activities. In my case: implementation 'androidx.appcompat:appcompat:1.5.1'
🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.
New Issue Checklist
Issue Description
When the Facebook app is not installed on the device and the app uses AndroidX fragments 1.5+, the Facebook Login flow is broken and the app login Activity is being recreated on top of the existing login Activity instance. Additionally, after closing the additional Activity, the FacebookCallback.onCancel() method is called regardless the webview login and permission was successful. This makes Parse SDK returning a successful task, but with still no ParseUser logged.
Steps to reproduce
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation "com.github.parse-community.Parse-SDK-Android:facebook:4.1.0"
implementation "com.github.parse-community.Parse-SDK-Android:parse:4.1.0"
ParseFacebookUtils.logInWithReadPermissionsInBackground(...)
Actual Outcome
ParseUser.getCurrentUser()
still returns nullonActivityResult()
is not calledParseFacebookUtils.logInWithReadPermissionsInBackground(...)
does not return any task and callback is not calledExpected Outcome
onActivityResult()
is calledParseFacebookUtils.logInWithReadPermissionsInBackground(...)
returns a task with a ParseUser or callback success method is calledEnvironment
Parse Android SDK
4.1.0
Android 13
Server
4.2.0
Linux/4.17.6
AWS
Database
MongoDB
4.4.18
MongoDB Atlas
Logs
The text was updated successfully, but these errors were encountered: