cordova-plugin-theme-detection
cordova-plugin-theme-detection copied to clipboard
IOS 14.6 always return false
Hi, please help with this: i alway got 'theme isn't enabled' and 'false' usin iphone. I have this in my config.xml
<edit-config file="*-Info.plist" mode="merge" target="UIUserInterfaceStyle">
<string>Light</string>
</edit-config>
but removing this doesn't change anything. XCode 12.5.1 and IOS 14.6, iPhone 7+. Dark theme is enabled on the phone for sure. Any ideas what can be wrong?
Maybe it's a long time to answer this, but I've also had this problem. The problem was that even after I've delete this property it was setted on cordova prepare ios
command. I've need to remove platform ios and add it one more time and this plugin was working like a charm.