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

Android not using Facebook Native app for login on SDK 30+ #115

Open
NGumby opened this issue Jun 12, 2023 · 0 comments
Open

Android not using Facebook Native app for login on SDK 30+ #115

NGumby opened this issue Jun 12, 2023 · 0 comments

Comments

@NGumby
Copy link
Contributor

NGumby commented Jun 12, 2023

From this : https://developer.android.com/training/package-visibility
facebook packages are not returned anymore by GetInstalledPackages, so IsAppInstalled returns false and always uses webview.

To fix, you can put this in your AndroidManifest, within the manifest tag

  <queries>
    <package android:name="com.facebook.katana" />
    <package android:name="com.facebook.lite" />
  </queries>

It think it could be fixed in the package by using this
LoginManager.Instance.SetLoginBehavior(LoginBehavior.NativeWithFallback);
instead of
LoginManager.Instance.SetLoginBehavior(IsAppInstalled() ? LoginBehavior.NativeOnly : LoginBehavior.WebOnly);

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

1 participant