-
-
Notifications
You must be signed in to change notification settings - Fork 735
Closed
Labels
state:releasedReleased as stable versionReleased as stable version
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- I can reproduce the issue with the latest version of Parse Server and the Parse Android SDK.
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
- 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' - Use Parse SDK 4.1.0 with Facebook:
implementation "com.github.parse-community.Parse-SDK-Android:facebook:4.1.0"implementation "com.github.parse-community.Parse-SDK-Android:parse:4.1.0"
- Implement Facebook Login
- Launch the app and launch Facebook Login by calling
ParseFacebookUtils.logInWithReadPermissionsInBackground(...) - Enter valid credentials
- Validate
Actual Outcome
- Additional login Activity created
ParseUser.getCurrentUser()still returns nullonActivityResult()is not calledParseFacebookUtils.logInWithReadPermissionsInBackground(...)does not return any task and callback is not called
Expected Outcome
onActivityResult()is calledParseFacebookUtils.logInWithReadPermissionsInBackground(...)returns a task with a ParseUser or callback success method is called
Environment
Parse Android SDK
- SDK version:
4.1.0 - Operating system version:
Android 13
Server
- Parse Server version:
4.2.0 - Operating system:
Linux/4.17.6 - Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc):
AWS
Database
- System (MongoDB or Postgres):
MongoDB - Database version:
4.4.18 - Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc):
MongoDB Atlas
Logs
Metadata
Metadata
Assignees
Labels
state:releasedReleased as stable versionReleased as stable version