Push Notification not working in web and mobile app

I have configured push notification in app, by adding FCM key into it, but I am unable to receive notification. On successful message receive firebase onMessage method does not trigger neither in background nor foreground.

I have followed steps in this link