Xamarin Android call fb://page stop working if not set query all packages, but this flag require special Google authorization. Is possible open facebook app without this flag on Android 11?
Before Android 11 this piece of code open Facebook app:
private async void Buttonfb_Tapped(object sender, EventArgs e)
{
try {
if (!await Launcher.TryOpenAsync(new Uri(string.Format("fb://page/{0}", AppData.FacebookId)))) {
OpenUrl(string.Format("https://m.facebook.com/{0}", AppData.FacebookPage));
}
}
catch {
}
}
after Android 11 if not add in manifest
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
app open only browser address (fail to open "fb://page/id-page"). But adding this flag, play store require this: screenshot of play store request