I’m trying to get the width and height of mobile phones in my Ionic app using platform.width()
and platform.height()
.
Testing it with a One Plus One (1080x1920 pixels), it gives me 360x640.
Visiting this website with the phone gives the same values.
What’s going on here? How could I get the right width and height?