CrossGeeks / FacebookClientPlugin

Facebook Client Plugin for Xamarin iOS and Android
MIT License
106 stars 32 forks source link

Cookie pop up not scrollable #90

Open gigimatto88 opened 3 years ago

gigimatto88 commented 3 years ago

Bug Information

On Android, after FB login button clicked, it opens FB pop up for cookies permission which is not scrollable: no way to scroll down and grant permission and no way to go ahead.

Version Number of Plugin: 2.2.1 Device Tested On: XIOMI REDMI 3S Version of VS: 16.5.4 Version of Xamarin: 4.8.0

Steps to reproduce the Behavior

EU citizens. All Android configurations setted. First login attempt to FB on the phone: no previous FB cookies permission accepted. Clicking on FB login button will appear a FB pop up for cookies permission.

Expected Behavior

Cookies permission pop up shall be scrollable in way to grant permission.

Actual Behavior

Cookies permission pop up is not scrollable.

Code snippet

Code behind:

    IFacebookClient _facebookService = CrossFacebookClient.Current;

    private async void OnLoginWithFacebook(object sender, EventArgs e)
    {
        await LoginFacebookAsync();
    }

    async Task LoginFacebookAsync()
    {
        try
        {

            if (_facebookService.IsLoggedIn)
            {
                _facebookService.Logout();
            }

            string[] fbRequestFields = { "email", "first_name", "last_name" };
            string[] fbPermisions = { "email" };
            await _facebookService.RequestUserDataAsync(fbRequestFields, fbPermisions);
        }
        catch (Exception ex)
        {
            Debug.WriteLine(ex.ToString());
        }

XAML:

<ContentPage.Content>
    <ScrollView>
        <StackLayout Padding="20"
                         VerticalOptions="CenterAndExpand">

            <ImageButton Source="Facebook_login"
                        Clicked="OnLoginWithFacebook"
                        HeightRequest="50"
                        HorizontalOptions="CenterAndExpand"
                        VerticalOptions="FillAndExpand"/>

            </StackLayout>
    </ScrollView>
</ContentPage.Content>

Screenshotst

IMG_6102