Skip to content

Commit

Permalink
add further specification to android notification structure
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsen340 committed Dec 8, 2016
1 parent 4fc48cd commit ec49834
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 ec49834

Please sign in to comment.