Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Payload is broken when Channel is used #139

Open
lenzch opened this issue Oct 23, 2020 · 0 comments
Open

Payload is broken when Channel is used #139

lenzch opened this issue Oct 23, 2020 · 0 comments

Comments

@lenzch
Copy link

lenzch commented Oct 23, 2020

When an Android app is active and receives a push notification the payload field of the message is overwritten with the channel data.

For example, when sending a message like following to the IBM Push Notifications ReST API

{"message": {
        "alert": "My Message"
    },
	"settings": {
		"gcm": {
            "channelId": "Channel1",
            "payload": {"someKey": "someValue"}
		}
	}
}

The resulting message that is provided to the app is
MFPSimplePushNotification :{url:null, payload:{"enableVibration":true,"importance":3,"lockScreenVisibility":1,"bypassDND":false,"lightColor":"GREEN","showBadge":true,"channelName":"My Channel Name","enableLights":true,"channelId":"Channel1"}, alert:My Message}

Following line seems to be the root cause of this issue.

Could you please fix that soon?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant