We were previously passing the overriden payload object directly to the click handler
if the customer called onNotificationReceived. This is problematic because the custom
payload has been stripped of pusher metadata, which the click handler relies on for
analytics events.
This PR embeds the metadata in a separate object so that it is always accessible.
We were previously passing the overriden payload object directly to the click handler if the customer called onNotificationReceived. This is problematic because the custom payload has been stripped of pusher metadata, which the click handler relies on for analytics events.
This PR embeds the metadata in a separate object so that it is always accessible.