Open mkden opened 3 years ago
Did you try to install the plugin with the cordova CLI? cordova plugin add cordova-plugin-theme-detection
1) cordova plugin add cordova-plugin-theme-detection
2)the plugin was installed and appeared in the plugins folder
3)add to config <plugin name="cordova-plugin-theme-detection" spec="1.3.0" />
4)add to index.html code `cordova.plugins.ThemeDetection.isAvailable((res)=>{
console.log('Is Theme Detection Available? ->',res);
},(err)=>{
console.log('Error when running isAvailable ->',err);
});
cordova.plugins.ThemeDetection.isDarkModeEnabled((res)=>{ console.log('Is it dark mode? ->',res); },(err)=>{ console.lo`
but not work erorr ThemeDetection of undefined
test in Monaca Debugger
Please try to reinstall the plugin or readd your platform. I'm not able to reproduce this issue
Is there a problem with MIUI? Beacuse i have the same Issue.
It shouldn't be a problem with MIUI, I'm testing on a Xiaomi device, too. Are you guys using any plugin for app development?
After switching from SDK 33 to SDK 34 I got this error and plugin is not working any longer.
This is what I have: Cordova android 12.0.1 android-targetSDKVersion=34 android-minSdkVersion=30 android-compileSdkVersion=34
install to cordova this plugin add to config
<plugin name="cordova-plugin-theme-detection" spec="1.3.0" />
but not work erorr ThemeDetection of undefinedmy cod