microsoft / pxt-microbit

A Blocks / JavaScript code editor for the micro:bit built on Microsoft MakeCode
https://makecode.microbit.org
Other
726 stars 638 forks source link

Orientation is forced to portrait which is odd for many Android tablets #4629

Closed jaustin closed 1 year ago

jaustin commented 2 years ago

I'm not sure whether I've found the actual reason for this, but I've just installed the PWA using Chrome on Android.

I suspect this line is implicated: https://github.com/microsoft/pxt-microbit/blob/46003450ddb5720aa3fc280f83e227bad52160bb/webmanifest.json#L4

When I open the PWA, I get the tablet forced to portrait mode, independent of the orientation of the device. This is annoying because most tablet keyoards expect the device to be in Landscape, and programming with a tablet makes much more sense with a keyboard.

Is there a reason to force portrait mode?

abchatra commented 2 years ago

@jaustin did you try /beta?

martinwork commented 1 year ago

Reported in ticket https://support.microbit.org/helpdesk/tickets/60493 (private)

@abchatra If I go to beta in Chrome on Android and install the PWA, the installed app launches live stuck in portrait.

"orientation" is still "portrait" https://github.com/microsoft/pxt-microbit/blob/master/webmanifest.json#L4