How to recognize the OS of a mobile device?

0
Hi guys,   We have a mobile application running on Mx. I want to trigger OS specific functions, and therefore I need to know whether an user is iOS user or an Android user. How could I determine in Mx which type OS the mobile user has?   thnx
asked
2 answers
8

You could retrieve this information in a Java action using ISession.getUserAgent().

This results in a string looking like this: User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko

answered
3

Hi Enzo,

 

I think there are different ways to do this (custom java action / JavaScript / JQuery). I have not tried it or read it fully but just found this which I thought might be helpful to you http://stackoverflow.com/questions/21741841/detecting-ios-android-operating-system

Hope this helps!

 

Cheers,

Mohammed Siddiqui 

 

answered