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.
<JavaScript>
var Environment = require('FuseJS/Environment');
if(Environment.ios) {console.log("It's iOS!");}
if(Environment.android) {console.log("It's Android");}
if(Environment.preview) {console.log("It's Preview!");}
if(Environment.mobile) {console.log("It's on mobile!");}
</JavaScript>
<Android>
<!-- custom android stuff -->
</Android>
<iOS>
<!-- custom ios stuff -->
</iOS>
1 Like