From 3b9572c9c094c56d463c58d3c8628efd82f83ff6 Mon Sep 17 00:00:00 2001 From: Christian Z Date: Sun, 13 Oct 2019 14:02:41 +0200 Subject: [PATCH] fix for including buttons from parameters --- src/OneSignalClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OneSignalClient.php b/src/OneSignalClient.php index 4d600c6..3a6235d 100644 --- a/src/OneSignalClient.php +++ b/src/OneSignalClient.php @@ -388,7 +388,7 @@ public function sendNotificationCustom($parameters = []){ $parameters = array_merge($parameters, $this->additionalParams); $this->headers['body'] = json_encode($parameters); - $this->headers['buttons'] = json_encode($parameters); + $this->headers['buttons'] = json_encode($parameters['buttons']); $this->headers['verify'] = false; return $this->post(self::ENDPOINT_NOTIFICATIONS); }