Closed dibs439 closed 2 years ago
I had the same problem. I fixed it by using strval($myValue)
so that the data array only consists of strings. Then the notification appeared again.
I think one can see this as a bug of the library because it could do this or at least throw an error if non-string values are passed in the setData
function.
Feel free to PR a fix
Dear Contributor,
I am facing a problem with related to sending push. the setData() function works well with static values such as
->setData(['data1' => 'value 1', 'data2' => 'value 2'])
However, in my case these information may be variable. When I am doing like this
$data['title'] = "Some title"; $data['body'] = "Some message";
and then passing this
->setData($data);
then notification does not come. How to format it so it will appear in Browser and mobile app client so they can handle the same.
Thanks in advance.