How to set parameters for push notification on OpenWhisk package.


I’m trying to send push notification with OpenWhisk Push Notification package.

It works well with action directly.

wsk action invoke myPush/sendMessage –blocking –result -p text “ABC”

but I’m getting “No message to send” error with a rule like below.

wsk rule create myRule myTrigger myPush/sendMessage -p apnsPayload “{“aps”:{“alert”:”Hello”}}”

How can I set the parameters for sendMessage when I make a rule?

Is it possible to set the parameters with json file?



Leave a Reply