Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17118

How to get phone's OS?

$
0
0

@efares wrote:

Hi,

Does anyone know how to get the OS of a phone to determine if it's an Android or an iPhone (iOS)?
Is there something like cc.sys.os or anything like that?

If you anyone knows what information is given from an Android phone and from an iPhone are that would be great. Basically I want to do this:

if (cc.sys.os == 'Android') {
    // Go to Android Play Store
    ...
} else if (cc.sys.os == 'iOS') {
    // Go to iPhone App Store
    ...
}

Thanks

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 17118

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>