Cannot detect the screen orientation


I print “window.screen” on the screen.

With Chrome, I get:

When running “ionic emulate ios”, I get:

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:

screen gives:

$window.screen gives:

screen.orientation gives

Please fix this issue Ionic team!