Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to use gs.addInfoMessage() in the Agent Mobile App ?

Selim
Tera Expert

Hi,
My Problem is that gs.addInfoMessage() is not showing in the Agent Mobile App.

I am hiding footer Functions by Condition with a Script Include, and in that Script Include I want to return also the info Message, so what ways do I have? Is there something similar to gs.addInfoMessage() for the Agent Mobile App?

Thanks,

1 ACCEPTED SOLUTION

Hi, 
Yes, gs.addInfoMessage() is actually just useable in the Mobile App. I integrated the Condition and the Message Statement into my function. Thats it.

View solution in original post

4 REPLIES 4

Maik Skoddow
Tera Patron
Tera Patron

Hi

a mobile app works completely different from a web-browser app. Therefore, you cannot expect each functionality to have in a mobile app the same way.

The corresponding functionality of gs.addInfoMessage() is called mobile alerts.

It is explained and demonstrated in the following video: https://www.youtube.com/watch?v=nF_UNvUVOGQ

Maik

Selim
Tera Expert

The behaviour of the alert is not quite what I was looking for. I think it would be Ok that there is a Pop-Up Message - but that is not really what I wanted, I wanted something similar to gs.AddInfoMessage() so that there is only one Line at the top or bot of the screens where the Message appears. 
The bigger Problem are the 2 buttons - I only would need the dismiss button but I wouldnt need a Primary button, but thats mandatory.

Are there any other ways to display Messages to a Mobile App User? 

Hi Selim,

 

I am looking for a similar functionality as you. Were you able to figure something out?

 

Thanks,

Simon

Hi, 
Yes, gs.addInfoMessage() is actually just useable in the Mobile App. I integrated the Condition and the Message Statement into my function. Thats it.