Specifying OS in devices.json

Hi there,

Is it possible to specify the OS of each phone listed in the devices.json file? I’ve got specific layout for iOS but the preview does not show it since it does not recognize the OS of the selected device.

Thanks,
Bertrand.

Hi Bertrand,

as you probably know, there are Android and iOS UX triggers, and there’s Environment JS module you can use to differentiate between platforms (see https://www.fusetools.com/docs/fusejs/environment).

The local preview, however, is that - local preview. So the viewports defined in devices.json are there mostly for the screen sizes only. As of now, you can not emulate one of the mobile OS on local preview, because the local preview itself is a different environment.