How to read any push notification data?

Hi, I would like to read the notification data that I receive on my phone. I have built an ionic application which has a login and verification using OTP message. Currently the user will have to enter OTP by reading from the message and enter the value in an input box. I was thinking if I can read the popup notification message to extract OTP number and then directly use it for verification. Here are my questions,

  1. Do I need to use a plugin? (Would be best, if I need not)
  2. If I use plugin, do I need to register for GCM, etc? (I haven’t implemented any push notifications yet).

Would love to see a JSFiddle example or a codepen if possible.

Thank you very much in advance. :grinning:

Language : #ionic #ngcordova @mhartington