pxt-microbit icon indicating copy to clipboard operation
pxt-microbit copied to clipboard

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

Open jaustin opened this issue 3 years ago • 1 comments

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?

jaustin avatar May 11 '22 22:05 jaustin

@jaustin did you try /beta?

abchatra avatar May 13 '22 23:05 abchatra

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

martinwork avatar Mar 06 '23 12:03 martinwork