Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth Facebook does not work on Android #275

Open
petrdrabek opened this issue Mar 10, 2024 · 3 comments
Open

Auth Facebook does not work on Android #275

petrdrabek opened this issue Mar 10, 2024 · 3 comments

Comments

@petrdrabek
Copy link

petrdrabek commented Mar 10, 2024

Hi!
On Auth Facebook Android is not set muttability flag for pending intent. Handling activity result then ends up in exception.

Java.Lang.IllegalArgumentException: 'app.name: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.

@TobiasBuchholz
Copy link
Owner

Hi,

for sign in with Facebook Plugin.Firebase.Auth.Facebook just calls the methods of FirebaseAuth:

public async Task<IFirebaseUser> SignInWithFacebookAsync()

That means creating the PendingIntent happens inside the Xamarin.Facebook.Android sdk and there is no way for Plugin.Firebase to set FLAG_IMMUTABLE or FLAG_MUTABLE. Furhtermore the sdk was last updated at 19.10.2021...you could create an issue on their repo and cross fingers someone responses.

@petrdrabek
Copy link
Author

petrdrabek commented Mar 13, 2024

@TobiasBuchholz It looks like, they dont have intention to fix it soon (xamarin/FacebookComponents#237 (comment)). Can we use fixed library for login like https://www.nuget.org/packages/Anjo.Android.Facebook/ in this plugin?

It would help a lot. Thanks.

@petrdrabek
Copy link
Author

Any update on this? Or has someone workaround? This is still major issue for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants