Skip to content

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

@NGumby

Description

@NGumby

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions