title: ionic local notification error: Uncaught (in promise): TypeError: Object(...) is not a function
body: <p>I want to add local notification in my ionic project.I added in app.module.ts;</p>
  
  <p>import { LocalNotifications } from '@ionic-native/local-notifications/ngx';</p>
  
  <p>and I added LocalNotifications in providers.</p>
  
  <p>also in home.ts I write this codes;</p>
  
  <pre><code>sendLocalNotifications() {
  
  this.localNotifications.schedule({
    title: 'Local ILocalNotification Example',
    text: 'Delayed ILocalNotification',
    trigger: {at: new Date(new Date().getTime() + 3600)},
    led: 'FF0000',
    data: {secret: "asaddad"},
  
    sound: null
  });
  </code></pre>
  
  <p>I also did the definition of import and constructor in home.ts.I get the following error when I run my code on android device;</p>
  
  <pre><code>**Error: Uncaught (in promise): TypeError: Object(...) is not a function
  TypeError: Object(...) is not a function
      at LocalNotifications.schedule (vendor.js:92805)
      at HomePage.webpackJsonp.328.HomePage.sendLocalNotifications (main.js:2891)
      at main.js:2881
      at t.invoke (polyfills.js:3)
      at Object.onInvoke (vendor.js:5134)
      at t.invoke (polyfills.js:3)
      at r.run (polyfills.js:3)
      at polyfills.js:3
      at t.invokeTask (polyfills.js:3)
      at Object.onInvokeTask (vendor.js:5125)
      at c (polyfills.js:3)
      at polyfills.js:3
      at t.invokeTask (polyfills.js:3)
      at Object.onInvokeTask (vendor.js:5125)
      at t.invokeTask (polyfills.js:3)
      at r.runTask (polyfills.js:3)
      at o (polyfills.js:3)**
  </code></pre>
  
  <p>Can you help me?</p>