-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
- v4.x
- v5.x
- v6.x
Current Behavior
Xiaomi phones all of a sudden force Dark Mode on my Ionic Apps. Background color of the app has changed from white to black, the text from black to white. Also some buttons with CSS classes='primary' have now changed color. Dark mode in my phone is not active.
This happened for the first time on February 10th, 2022. Till this day, my Ionic apps on Xiaomi phones were running perfectly fine.
Do you have any idea how can I solve this issue?
Edit: now I have this problem on all Android phones (Samsung, Xiaomi, etc).
Expected Behavior
My app must have Light mode. Dark mode must not be forced.
Steps to Reproduce
I have noticed the same behaviour only in Xiaomi phones.
Code Reproduction URL
No response
Ionic Info
Ionic:
Ionic CLI : 6.13.1
Ionic Framework : @ionic/react 5.6.0
Capacitor:
Capacitor CLI : 3.0.0
@capacitor/core : 3.0.0
Utility:
cordova-res : not installed
native-run : 1.3.0
System:
NodeJS : v14.17.0 (C:\Program Files (x86)\nodejs\node.exe)
npm : 6.14.13
OS : Windows 10
Additional Information
Android version: 11