Ionic push notification v1 using firebase cloud messaging

Hi guys,
i am trying to configure push notification using firebase, but every time it gives me “Uncaught ReferenceError: FCMPlugin is not defined” i tried on device also but nothing happens.

i was googling this issue but no result.

Help me!!!

So it seems the FCMPlugin is not defined…

What tutorial or instructions are you following?
What did you implement?

Thanks sujan for replying.

i am following this link.
i already tested on device also but no result.

i also put the code on device ready still same error .