Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAUI Incorrect Theme when Resuming iOS App #20384

Closed
dinisvieira opened this issue Feb 6, 2024 · 1 comment
Closed

MAUI Incorrect Theme when Resuming iOS App #20384

dinisvieira opened this issue Feb 6, 2024 · 1 comment
Labels
platform/iOS 🍎 t/bug Something isn't working

Comments

@dinisvieira
Copy link

Description

Maui is using Light Theme instead of Dark Theme on iOS when resuming App (for example after "sharing a link" to a browser) when the OS is set to use Dark Theme (and the app was showing Dark Theme before resuming.
Application.Current.RequestedTheme is also returning the incorrect theme in these scenarios on App.OnResume.

Steps to Reproduce

PS: It's sometimes needed to repeat Share process to reproduce the bug.

Steps to Reproduce with the reproduction repo:

  1. Run App on iOS Device with the OS Theme set to Dark
  2. Click on the Button and Share using a Browser
  3. Go Back to App
  4. Repeat from step 2 (until the App is showing Light Theme)

Result:

App shows Light Theme instead of Dark

Expected:

App should always use Dark Theme (which is the one used and requested by the OS)

Link to public reproduction project repository

https://github.com/dinisvieira/maui-os-dark-theme-bug/tree/main

Version with bug

8.0.3

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 17.3 (possibly others)

Did you find any workaround?

No workarounds that wouldn't have some drawback. Application.Current.RequestedTheme is also returning the incorrect theme.

Relevant log output

No response

@dinisvieira dinisvieira added the t/bug Something isn't working label Feb 6, 2024
@drasticactions
Copy link
Contributor

Duplicate of #19614

@drasticactions drasticactions marked this as a duplicate of #19614 Feb 6, 2024
@drasticactions drasticactions closed this as not planned Won't fix, can't repro, duplicate, stale Feb 6, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Mar 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform/iOS 🍎 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants