Skip to content

In Maccatalyst maui OnResume, WillEnterForeground are not getting called #31450

@Swethavenna-github

Description

@Swethavenna-github

Description

OnClick of button in my app I am opening system settings. So when I close system settings and shift focus to my app WillEnterForeground ,OnResume method are not getting called so I am facing issues to check status of location permissions changed during unfocus of the app.

Image

Please let me know if we have any other methods or have workaround

Steps to Reproduce

Create sample maui app
build your app
Keep debug points in onresume, WillEnterForeground lifecycle methods
Now try to open some other app and now again shift focus on your app
now check this methods are not getting called in maccatlayst

Link to public reproduction project repository

No response

Version with bug

9.0.90 SR9

Is this a regression from previous behavior?

No, this is something new, Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-core-lifecycleXPlat and Native UIApplicationDelegate/Activity/Window lifecycle eventsplatform/macosmacOS / Mac Catalysts/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions