Identify IOS or Android
Question
Application Type
Mobile

Hi,

I want to add a back button for navigation when in IOS. For that i am trying to use the function GetOS() and i am asked to provide the "Useragent" string, which i dont know how to get it.

Can someone please help me with this or find an alternate method to identify whether the device is Android or IOS

mvp_badge
MVP
Solution

Hello there Learn It,

Hope you're doing well.


You can use GetPlatform client action from Common Plugin.


Hope that this helps you!


Kind regards,

Rui Barradas

Hi,

you can use the action CurrentOS  from WebPatterns.

Or directly on your module using GetUserAgent() function.

Regards

Hi Jose,

I couldnt find the action CurrentOS   in the dependencies. Could you please tell me where to find it

mvp_badge
MVP
Solution

Hello there Learn It,

Hope you're doing well.


You can use GetPlatform client action from Common Plugin.


Hope that this helps you!


Kind regards,

Rui Barradas

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.