Closed juhasev closed 1 year ago
Unfortunately, I can't reproduce the issue. I added a test to confirm that both ways (using an array and an instance of MessageData
) work in https://github.com/kreait/firebase-php/blob/b34b21c8b1ee337edb993ab1723d11d9cae27a7b/tests/Unit/Messaging/CloudMessageTest.php#L138-L151, and https://github.com/kreait/firebase-php/actions/runs/4159062416/jobs/7194767977#step:10:360 confirms that it behaves as expected.
If you see an error in the test, please let me know. Otherwise, could you please create a temporary GitHub repo that displays the issue, so that I can inspect the problem further?
Describe the bug
If you attempt to pass in extra data via array, nothing shows up in the received messages, and when you run $message->jsonSerialize(), the data is also missing.
However, if you use, MessageData object, everything works fine.
Aren't these two supposed to be equivalent?
Installed packages
PHP version and extensions
Steps to reproduce the issue.
Attempt to append data as an array.
Error message/Stack trace
Additional information
No response