is there any way to get client browser/system info before they login?

Ryan Norton
Giga Contributor

Is there any way to get client browser info before they log in, I know that there is the gs.getsession() which contains a method to obtain the client ip address, but I was wondering if I could figure out whether someone was connecting with chrome on android, or edge on windows, etc.

1 ACCEPTED SOLUTION

You could pretty easily redirect them to a custom public ui page that does that. Just pass in some parameters to the url and use some client side javascript to detect their browser version and redirect them.



Make a page public


View solution in original post

8 REPLIES 8

Brad Tilton
ServiceNow Employee
ServiceNow Employee

You might be able to do something through a custom login page or global ui script. That being said, could you share a little more about what you're looking to accomplish overall? Maybe there's a different way to go about it.


I have an email template that goes out and contains links to allow users to "update", "view", "chat", and "customize notification settings, currently we have no mobile site set up, but I was hoping to make a page that gets the clients platform and directs them either to the standard desktop site, or the respectable app url (for android and IOS).


You could pretty easily redirect them to a custom public ui page that does that. Just pass in some parameters to the url and use some client side javascript to detect their browser version and redirect them.



Make a page public


thats exactly what i wanted to do, do you by chance know what function id use?