[x] This issue is not security related and can safely be disclosed publicly on GitHub
Environment
Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:
Unity Editor Version: 2020.3.33 LTS
Unity SDK Version: 11.0.0 - latest available to download from the official website
Installation Platform & Verison: Android version 7, 9, 10, 12
Goals
I want to make login into Facebook on Android when FB Lite app is installed on device
Expected Results
Login window appears either in web view or in FB app
Actual Results
Login window closes immediately after showing for a while and FB SDK returns result cancelled
Steps to Reproduce
Create new empty Unity project
Import Facebook Unity SDK v11 unitypackage
Make sure you have a button with FB.LogInWithReadPermissions
Setup and build the sample app with CompileSdkVersion 19 and TargetSdkVersion 30 for Android
Install FB Lite app on device
Run the app on Android 7/9/12 device or emulator
Initialize FB
Log in with FB.LogInWithReadPermissions
FB overlay shows and closes immediately
SDK returns result Cancelled without user interaction
Notes
For devices running on Android 11/12 removing queries tag from AndroidManifest.xml helped to solve the issue, but on devices running on Android 7 (Redmi 5 for example) that didn't help
Checklist
Environment
Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:
2020.3.33 LTS
11.0.0
- latest available to download from the official websiteAndroid
version7, 9, 10, 12
Goals
I want to make login into Facebook on Android when FB Lite app is installed on device
Expected Results
Login window appears either in web view or in FB app
Actual Results
Login window closes immediately after showing for a while and FB SDK returns result cancelled
Steps to Reproduce
Notes
For devices running on Android 11/12 removing queries tag from AndroidManifest.xml helped to solve the issue, but on devices running on Android 7 (Redmi 5 for example) that didn't help