How can I force the platform style?


#1

Hello, If anyone knows this, I’d appreciate some insight–

I’d like to force the platform to look like the android in the browser and iOS. I do not want this to be done via a client tool or from outside the app, I’d like to be able to set it from within the app. How can I do this other than spoofing client agent or something hacky.

Thanks.


#2

You can set it by calling the following code:

ionic.Platform.setPlatform('android');

Here is a codepen that I recently created that demonstrates this functionality.