Push notification not working at all

KaMmILa__
Tera Expert

Can some one help me how I get servicenow mobile application ? When i click on the notifications only thing i see is email

I have servicenow agent up and running in my mobile .

find_real_file.png

 

 

I created a push notification and it is not working even i cannot see the logs too ,

First i created the push message 

find_real_file.png

 

Push notification will be triggered when the assigned to change and it will notify assigned to 

find_real_file.png

 

 

and added that in push default registration. what am i missing ? 

1 ACCEPTED SOLUTION

KaMmILa__
Tera Expert

Noticed that we have no roles and its working after adding push admin

View solution in original post

9 REPLIES 9

Prasad Dhumal
Mega Sage
Mega Sage

Hello KaMmILa 

for Push notification  you require format of JSON

The following is an example of a content record that creates a two-button layout, one to approve something, such as a change request, and one to decline it.

var json = { 
  "table" : current.getTableName(), 
  "sys_id" : current.sys_id, 
  "template" : { 
    "type": "2 button", 
    "button1" : { 
      "title" : "Approve", 
      "action" : attributes.button_action, 
      "parameters" : { 
        "response" : "approve" 
       } 
     }, 
     "button2" : { 
       "title" : "Decline", 
       "action" : attributes.button_action, 
       "parameters" : { "response" : "decline" 
       } 
     } 
   } 
}; 
json;
 

Procedure

  1. Navigate to System Notification > Push > Push Message Content.
  2. In the Push Notification Message Contents table, click New.
  3. Fill out the fields on the Push Notifications Message Content form (see table).
  4. Click Submit.
     

    Please mark my answer as correct and close the thread so that others can also benefit.

    Regards

    Prasad Dhumal

 

Thanks Prasad we just need to navigate to that record up on clicking the notification(if that generated ) 

Allen Andreas
Administrator
Administrator

Duplicate post here: https://community.servicenow.com/community?id=community_question&sys_id=c3fcc1cddb722410f77799ead396...


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

KaMmILa__
Tera Expert

Noticed that we have no roles and its working after adding push admin

Where did you add the role?