@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 theios
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