Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

How to Know the Operating System

Camilo edited this page Jul 27, 2020 · 1 revision

If you need to check the operating system before executing some code. You could use the $env property to obtain details of the operating system.

  • {{#if $env.device.os.name === 'ios'}}: Evals to true if the operating system is iOS.
  • {{#if $env.device.os.name === 'android'}}: Evals to true if the operating system is Android.
Clone this wiki locally