Skip to content

Crash when showing iOS permission to access location #117

Open
@feraguiba

Description

Occurs when the app is showing a popup from Mopups (1.3.1) and has to display a Map (Microsoft.Maui.Controls.Maps). Permission to access location is requested and when accepted, the app crashes.

Note: the workaround used in this issue (#95) prevents the crash.

    public override void OnActivated(UIApplication application)
    {
        (application.ConnectedScenes.AnyObject as UIWindowScene)?.Windows.FirstOrDefault()?.MakeKeyWindow();
        base.OnActivated(application);
    }

    public override void OnResignActivation(UIApplication application)
    {
        (application.ConnectedScenes.AnyObject as UIWindowScene)?.Windows.FirstOrDefault()?.MakeKeyWindow();
        base.OnResignActivation(application);
    }

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions