wmworia
Posts: 0
Joined: Tue Feb 10, 2015 9:22 am

Push notification action buttons from javascript API

How do I get action buttons to show from a PN sent from server code? This doesnt seem to work, the notification shows up but without the button:

Apperyio.PN.send(pushApiKey, {
payload: {
"title": "TITLE",

Code: Select all

 "message": message, 

 "additionalData": [{ 
   "page": "page" 
 }], 

 "actionButtons": [{ 
   "buttonTitle": "View", 
   "buttonCallback": "pushOpenPage" 
 }] 

}
});

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Push notification action buttons from javascript API

Hello,

Server code doesn't have an access to the application layount. You can show/hide any button with JS (https://devcenter.appery.io/documenta...) on the server code service success event (https://devcenter.appery.io/documenta...)

BananaGator
Posts: 0
Joined: Tue Jun 30, 2015 2:53 am

Push notification action buttons from javascript API

Use title and callback, not buttonTitle and buttonCallback.

https://devcenter.appery.io/documenta...
Image

Return to “Issues”