If a module wants to send a message preloaded with some additional element in $payload it would be nice not to need to reimplement push_notifications_send_message() just for that message.
Let's allow the $message parameter for push_notifications_send_message() be an array. If it is then look for the 'alert' key and use that as $message.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | push_notifications-2853301-#4.patch | 1.15 KB | vimalgoradiya |
| #3 | push_notifications-allow-message-array.patch | 1.66 KB | jacob.embree |
Comments
Comment #2
jacob.embree commentedComment #3
jacob.embree commentedWrong path the first time. This is the right one.
Comment #4
vimalgoradiya commentedI tried with patch #3 which still improve in condition to allow array.
This will allow you to send array in action of rules bu custom php code selection which is something like this.