raix-push icon indicating copy to clipboard operation
raix-push copied to clipboard

Are action buttons supported?

Open pefi1011 opened this issue 9 years ago • 4 comments

Hi Morten,

is it possible to have action buttons? Here an example from Phonegap and "Email guests" & "Snooze" as action buttons

Image of Action Buttons

Thanks

pefi1011 avatar Oct 06 '15 17:10 pefi1011

should be possible https://github.com/phonegap/phonegap-plugin-push#action-buttons

Not sure if I need to update schemas on the server

raix avatar Oct 06 '15 21:10 raix

Looks like support for iOS action buttons was added in phonegap/phonegap-plugin-push@2ec769729ef75f49f9887a9509efe3b6368375c7 Need to update that dependency to latest version?

nunovieira avatar Jan 08 '16 15:01 nunovieira

@pefi1011 hi .. can you pls confirm if you were able to create action buttons for android.. much appreciated!

thanks/rajpa

rajpa avatar Aug 09 '16 03:08 rajpa

You can create action buttons by fixing a part of the code in Raix:push. Line 300 in /lib/server/push.api.js change var data = (notification.payload) ? { ejson: EJSON.stringify(notification.payload) } : {}; to var data = (notification.payload) ? (notification.payload) : {}; Line 312 add if(typeof notification.actions !== 'undefined') { data.actions = notification.actions; }

ChrisKG32 avatar Apr 27 '17 19:04 ChrisKG32