How to allow a single user to browse servicenow instance using browser(chrome,edge etc) on Mobile.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 11:57 PM - edited 11-14-2024 12:54 AM
Hi Team,
In Our instance we have restricted users to browse ServiceNow instance using browser(chrome,edge etc) on Mobile ,However now i need it enable for single users I tried below in "For Mobile" UI script but didn't help Any suggestion appreciated
(function() {
if (!snmCabrillo.isNative() && detectmob())
})();
function detectmob() {
if(gs.getUserID=='sys_id of user')
{
return false;
}
if (navigator.userAgent.match(/Android/i) ||
navigator.userAgent.match(/webOS/i) ||
navigator.userAgent.match(/iPhone/i) ||
navigator.userAgent.match(/iPad/i) ||
navigator.userAgent.match(/iPod/i) ||
navigator.userAgent.match(/BlackBerry/i) ||
navigator.userAgent.match(/Windows Phone/i)
) {
return true;
} else {
return false;
}
}
0 REPLIES 0