AddressbarColor Plugin: Different Behavior Android vs. iOS #17900
Labels
area/plugins
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/quasar-cli-vite
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
I used the AdressbarColor Plugin as described in the docs (https://quasar.dev/quasar-plugins/addressbar-color).
I set the color in
/src/boot/addressbar-color.js
to#f00
with the following lines of code:But on iOS 18 the adressbar was white (instead of red).
Reason for this problem is, that Quasar sets the meta tag
apple-mobile-web-app-status-bar-style
which only supportsdefault
,black
, andblack-translucent
.What did you expect to happen?
I would expect the adressbar to be red (#f00).
For this to happen I would expect Quasar to set the meta tag
theme-color
(instead ofapple-mobile-web-app-status-bar-style
) which is fully support since Safari for iOS version 15.Reproduction URL
https://stackblitz.com/edit/quasarframework-stackblitz-templates-tkkdnwdc?file=src%2Fboot%2Faddressbar-color.ts
How to reproduce?
Generally speaking:
$q.addressbarColor.set('#f00')
With the provided stackblitz:
apple-mobile-web-app-status-bar-style
is settheme-color
is setFlavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Plugins (quasar)
Platforms/Browsers
iOS
Quasar info output
Relevant log output
Additional context
I provided a GIF that shows the different behavior of
theme-color
vs.apple-mobile-web-app-status-bar-style
on iOS 18. For demo purposes I edited theindex.html
directly without the use of the addressbar plugin (screen recording using iPhone mirroring):I would argue the behavior should be the same for Android and iOS. As far as I can see, I don't see any reason why not to use
theme-color
for every device.See also: https://stackoverflow.com/a/69699288/4251427
The text was updated successfully, but these errors were encountered: