Skip to content

Commit

Permalink
fix(web): add title and body to PushNotification
Browse files Browse the repository at this point in the history
  • Loading branch information
CFT-Chris committed Aug 21, 2019
1 parent 69b683b commit ab8563b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/web/push-notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ export class PushNotificationsPluginWeb extends WebPlugin implements PushNotific

this.firebaseMessaging.onMessage((payload: any) => {
const pushNotification: PushNotification = {
title: payload.data.title,
body: payload.data.body,
data: payload.data,
id: '' // Leaving blank. Nothing unique can be extracted from onMessage payload.
};
Expand Down

0 comments on commit ab8563b

Please sign in to comment.