diff --git a/Examples/simple-fcm-client/app/PushController.js b/Examples/simple-fcm-client/app/PushController.js index 9dbdc22200384d8837c242c2c9e15d30ce904f30..90319d8fccffa07a8bc7dc725d084158054b85c5 100644 --- a/Examples/simple-fcm-client/app/PushController.js +++ b/Examples/simple-fcm-client/app/PushController.js @@ -29,7 +29,7 @@ export default class PushController extends Component { console.log("INITIAL NOTIFICATION", notif) }); - this.notificationListner = FCM.on(FCMEvent.Notification, notif => { + this.notificationListener = FCM.on(FCMEvent.Notification, notif => { console.log("Notification", notif); if(notif.local_notification){ return; @@ -74,7 +74,7 @@ export default class PushController extends Component { } componentWillUnmount() { - this.notificationListner.remove(); + this.notificationListener.remove(); this.refreshTokenListener.remove(); }