Closed namnm closed 1 year ago
Hi @namnm Thank you for the PR!
Have you done manual testing of the updated logic? Does it work for all cases it worked before?
Hi @Ariandr
I tested a bit with the new logic. Look at the code, it would only affect if the json user put it has data
or notification
object, in that case we will override those default fields.
If the json has no data
or notification
object, it would be working as usual.
Okay @namnm, but at the moment I cannot test Android notifications personally. If @onmyway133 approves, we will deliver it.
Hi @onmyway133 Please have a look, if everything is okay, I will merge this PR and create a new release.
Hi @onmyway133 Do you have a chance to review this PR?
If you approve, I will create a release.
Published new release https://github.com/onmyway133/PushNotifications/releases/tag/1.7.9
If payload.data or payload.notification is present, we merge the whole payload to the fcm message object. This will solve the case user need to send data-only or custom notification payload
For eg: