Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70762

Change PWA Look and Feel based on desktop browser platform?

$
0
0

@saschwarz wrote:

Ionic supports explicitly setting the platform using query params (e.g. ionicPlatform=ios).
When I deploy my PWA and it’s viewed on a desktop browser I’d like it use the ios look and feel when viewed on a Mac, windows on windows, and android everywhere else.

I’ve been looking in the platform code and haven’t found where the ionicPlatform switching happens based on the platform is performed. I read somewhere someone calling platform.setUserAgent() with a windows browser useragent to force what I’m looking for on windows platforms. So I could do that for all three platforms…

Is there was a better solution?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>