How can I get the platform on which my application is running?

I need to determine on what platform (iOS or Android), my application is currently running. Is there a way to do this? So far, I just found the Capabilities.os property, which is I think exactly this case. The problem with this property is that it only returns the different version of Windows, or if the platform is a Mac or Linux or an iPhone OS (this iOS? I don't know...).

Are there ideas how I might solve this problem?

Code I've seen online suggests that 'ios' is in the version, so it should work:

If (Capabilities.version.indexOf ('IOS')< 0)="">

Tags: Adobe AIR

Similar Questions

Maybe you are looking for