Cannot detect the screen orientation

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

I figured out the issue.
it’s a bug with the “Ionic View” app.
I just published a test version of my app and everything works fine.

window.screen gives:
{‘orientation’:‘portrait-primary’}

screen gives:
{‘orientation’:‘portrait-primary’}

$window.screen gives:
{‘orientation’:‘portrait-primary’}

screen.orientation gives
’portrait-primary’

Please fix this issue Ionic team!