Find out if device is iOS or Android

Is there any way to detect whether the device runs Android or iOS?

You can both check the platform from JS and do platform-conditional UX markup. :slight_smile:

    var Environment = require('FuseJS/Environment');

    if(Environment.ios)        {console.log("It's iOS!");}
    if(    {console.log("It's Android");}
    if(Environment.preview)    {console.log("It's Preview!");}
    if(    {console.log("It's on mobile!");}


    <!-- custom android stuff -->

    <!-- custom ios stuff -->

1 Like