dpogue commented on issue #1949: URL: https://github.com/apache/cordova-android/issues/1949#issuecomment-4600306945
Because the way this is _supposed_ to be handled is using the `meta theme-color` tag: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/meta/name/theme-color The custom JS API we added on iOS is only intended for cases where the theme-color option doesn't work, but it was intended to support all the same values. Unfortunately, while iOS WKWebView gives us a `themeColor` property as of iOS 15.4, the Android WebView does not give us any access to the page's declared theme colour (yet). I've got PRs submitted to the Android WebView to support it, but Google is being slow about reviewing them (see https://issues.chromium.org/issues/506193601) So we're stuck with this custom API that was never supposed to exist as the only option on Android for the moment. Luckily, the browser is doing all the work to handle parsing of the CSS colours, and the Java side just needs to deal with 3 or 4 component integers (which it should already be doing). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
