"GlideMobileExtensions is not allowed in scoped applications" has anyone got this working for scoped applications

dave_edgar
Mega Guru

We've noticed that all of our redirects do not work on mobile browsers and therefore we have issues with many users not using the native app creating duplciate tickets and calling through requests/issues because the redirects that worked in Helsinki do not work in Istanbul

Anyone know?

2 REPLIES 2

chirag_bagdai
ServiceNow Employee
ServiceNow Employee

Hi Dave,



Can you please share some use case ie.   where & what is the script that you are using for redirection ?



also, may be you can try with create "Cross Scope Privilege" i.e:


Screen Shot 2017-06-24 at 3.34.27 AM.png



But it would be helpful if you can share use case with some screenshots or the code which you are trying.


so user case is that they can not use the native app so they are using a mobile device so they are using the $m.do view



So this affects all our c=service catalog items for instance, raise a security incident that is going to a global application



In helsinki the script for redirection is:


producer.redirect = 'ticket_redirect.do?sysparm_number=' + current.number;



Setup is as seen


find_real_file.png


find_real_file.png


On desktop this is the redirect:


find_real_file.png



Catalog items looks like this on mobile


find_real_file.png


no redirect after submitting.



On Helsinki this is the redirect


find_real_file.png



So i picked up this code from an ootb Istanbul instance:


var isMobile = GlideMobileExtensions.getDeviceType() == 'm';


var link = isMobile ? '#/!list/incident/q:active=true%5Ecaller_id=javascript:gs.user_id()%5EEQ' : 'home.do';



var s = 'This Request was opened for you<br/>';


s += 'The team will contact you if there is need for further information<br/>';


if (isMobile)


  s += 'You can track status from this <a href="' + link + '">List</a> <br/>';


else


  s += 'You can track status from the <a href="' + link + '">Homepage</a> <br/>';


gs.addInfoMessage(s);




but this doesn't do anything, nothing gets past the submit press



AND most importantly I need to get this working for a scoped application