Function to determine if on iOS or Android?

Is there a simple function I can use in my mobile app to determine whether it is currently running on an iOS device or an Android device?

Thank you!

Solution

Hi Joel,

You can check here. According to the documentation, the "device.platform" Javascript variable will hold "Android" or "iOS".

There's also a Forge component that hides the Javascript for you.

Solution

Thank you!  The Forge component does just what I need.  I appreciate your kind assistance.