Skip to content

Commit

Permalink
Merge branch 'android-notification-structure' of github.com:tapglue/s…
Browse files Browse the repository at this point in the history
…naas into android-notification-structure
  • Loading branch information
Alexander Simmerl committed Dec 8, 2016
2 parents 19afc55 + ec49834 commit 9ba186e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/notifications-structure-android.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ The current structure of the notification payload on android does not allow for

## Proposed solution

Replace the notification message with a data message. Documentation on both types can be found [here](https://firebase.google.com/docs/cloud-messaging/concept-options#notifications_and_data_messages)

1. Add the data from the `notification` object to the `data` object.
2. Put the `data` object on the top level
2. Remove the `notification` object.

The names of the fields in the `notification` object could be the same in the `data` object. This way the client has to manually handle their notifications, which gives it the liberty to customise the design.
Expand Down

0 comments on commit 9ba186e

Please sign in to comment.