isMobile is working for Mobile UI only not for Mobile app.

Pratyush Mandal
Mega Expert

isMobile is working for Mobile UI only not for Mobile app.

Is there is anything for Mobile app so that system should understand the person login through app.

I have written ACL on incident table for Create operation, "New" button will be available when person login in desktop not from mobile app but still button available in Mobile app view also, seems isMobile is not detecting mobile app login.

1 ACCEPTED SOLUTION

Pratyush Mandal
Mega Expert

This is the issue with Mobile app. isMobile is always returning false. ServiceNow support team created PRB691470 for this.


View solution in original post

14 REPLIES 14

Atul Kumar2
Giga Guru

Hi Pratyush,



You need to check in the UI Action(new) which is appearing in the incident table. and modify the condition and only allow when it is not mobile app.


Hope this helps.



Regards,


Atul Kumar


Chuck Tomasi
Tera Patron

Hi Pratyush,



Rather than checking your UI action to see if the user is mobile or not, I recommend creating a UI action specifically for the mobile users. Mobile UI actions are configured under System Mobile UI> UI Actions - Mobile.



find_real_file.png



Reference: Mobile interface UI actions


Pratyush Mandal
Mega Expert

Thanks for the information, we can do this way also. But I want to know isMobile is working for Mobile app or not? If not what method we will use to check user is logged through mobile app or not?


gs.isMobile() will do what you want. I just tested it in a business rule.



find_real_file.png


find_real_file.png