How to get client type [IOS, JAVA, FLASH]

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

grhwood
Posts: 116
Joined: 15 Mar 2011, 04:43

How to get client type [IOS, JAVA, FLASH]

Postby grhwood » 07 Dec 2013, 13:13

Hi,

Is it possible to get the client connection type ?

Thanks,
User avatar
Lapo
Site Admin
Posts: 21700
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: How to get client type [IOS, JAVA, FLASH]

Postby Lapo » 07 Dec 2013, 14:32

You mean detecting from server side the type of connection?

Code: Select all

userObj.getSession().getSystemProperty(SFSConstants.SESSION_CLIENT_TYPE);

You will get something like this:
<ClientType>:<VersionDetails>

For example a Flash from the browser gives you something like this:

Code: Select all

Flash PlugIn:MAC 11,9,900,170


You will have to experiment with the various client types to see what they return, there's a wide variety of types especially if you use HTML5, each browser has it's own signature.
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 26 guests