Skip to content

Permissions registering issue when using AppShell #3

@davewheatcroft3

Description

@davewheatcroft3

It appears when using an AppShell for navigation the flow breaks - I think specifically in Android.

This message appears:
Java.Lang.IllegalStateException: 'LifecycleOwner crc64c98e7f6d892de5e5.MainActivity@d65cbb6 is attempting to register while current state is RESUMED. LifecycleOwners must call register before they are STARTED.'

Which with a little reading, is because the regare doing this too late for Android flow. I assume AppShell does something differently that means the Blazor view initialization in the page is fire later?

To reproduce this simply app main page with an AppShell instance.
And add shell content for the main page.
And then error should appear.

Great and helpful example by the way - really helped me get this far!

Metadata

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