Hello,
I print “window.screen” on the screen.
With Chrome, I get:
{“orientation”:{“onchange”:null,“type”:“landscape-primary”,“angle”:0},“availWidth”:375,“availHeight”:667,“availTop”:0,“availLeft”:0,“pixelDepth”:24,“colorDepth”:24,“width”:375,“height”:667}
When running “ionic emulate ios”, I get:
{‘orientation’:‘portrait-primary’}
When running the app inside the “Ionic View” IOS app, I get:
{}
I don’t mind having different variable content between the supports but if the ios object is empty, this is a huge issue.
Do I need to use a different variable in order to get the screen orientation?
How can I fix this issue?
Thank you