Ionic 2 SMS plugin


I follow the steps in but i got error Property ‘SMS’ does not exist on type ‘Window’. How can i handle this.

      if(window.SMS) window.SMS.listSMS({},data=>{


Thank you in advance.

You should use the ionic-native plugin:

Hi LoLStats

Yes I already imported that plugin.

Thank for your reply.

But your code does not look like you are using the ionic-native/SMS plugin.
The linked guide you posted is really old and outdated.

Hi lolstats

I’m newbie in ionic 2 . I read the documentation of SMS in but I cant find any usage how to read all SMS. Thank you

First declare var SMS:any on the top of page. Following this complete guild to integrate it with your Ionic Project working in Android with ionic 3