title: addEventListener in ionic 3
body: <p>I need to read sms on it arrive. I get cordova-plugin-sms and use this code. But how i could change this code in order to work in ionic 3?</p>
  
  <pre><code>if(window.SMS){ 
      window.SMS.startWatch(data =&gt; {
          console.log('watching', 'watching started');
      }, error =&gt; {
          console.log('failed to start watching');
      });
  }
  
  document.addEventListener('onSMSArrive', function(e) {
      var sms = e.data;
      console.log(sms);
  });
  </code></pre>