Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Handle payloads with push notification information in message property. #218

Closed
wants to merge 1 commit into from

Conversation

thomasconner
Copy link

Some providers send push notification payload nested in the message property. For example, { message: { message: "Hello World", title: "Test" }}. The library will now handle this use case if the properties are not found at the top level of the payload.

Signed-off-by: Thomas Conner [email protected]

Some providers send push notification payload nested in the message property. For example, { message: { message: "Hello World", title: "Test" }}. The library will now handle this use case if the properties are not found on the top level of the payload.

Signed-off-by: Thomas Conner <[email protected]>
smdvdsn added a commit to smdvdsn/phonegap-plugin-push that referenced this pull request Oct 13, 2015
This change moves all alternative key logic into a single method. Also allows message keys to be in nested "data" or "message" object to support parse.com and other providers.

fixes phonegap#147 replaces phonegap#218 and phonegap#182
smdvdsn added a commit to smdvdsn/phonegap-plugin-push that referenced this pull request Oct 13, 2015
This change moves all alternative key logic into a single method.
Allows message keys to be in nested in "data" or "message" object. This is to support parse.com and other providers.
Added additional keys to support Urban Airship.

fixes phonegap#147 replaces phonegap#218 and phonegap#182
@lock
Copy link

lock bot commented Jun 3, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant