title: Capturing click event on ionic 4 local notification in IOS device
body: <p>In my <code>ionic 4</code> app I was able to trigger local notification on button click using the <code>cordova</code> plugin for local notification (<a href="https://ionicframework.com/docs/native/local-notifications#usage" rel="nofollow noreferrer">doc.</a>), but could not figure out a way to capture the event when the user clicks the notification banner. On clicking the notification it just redirects to the app but not entering the <code>'on click'</code> function.
  It is working fine when tested in android device but no luck with ios.</p>
  
  <p>Thanks in advance for the help.</p>
  
  <p>here is my code: </p>
  
  <pre><code>  constructor(
      private localNotifications: LocalNotifications,
      public platform: Platform,
    ) {
       this.platform.ready().then(() =&gt; {
         this.localNotifications.on('click').subscribe(notification =&gt; {
           console.log('click on notification fired);
       });
    }
  
    notify() {
      this.localNotifications.schedule({
        title: `my test notification`,
        text: `my detailed description`,
        trigger: {
          in: 3000,
          unit: ELocalNotificationTriggerUnit.SECOND,
        },
      });
     }
  </code></pre>
  
  <p>Here is my ionic info :</p>
  
  <pre><code>Ionic:
     Ionic CLI                     : 5.4.5 (/usr/local/lib/node_modules/ionic)
     Ionic Framework               : @ionic/angular 4.11.5
     @angular-devkit/build-angular : 0.801.3
     @angular-devkit/schematics    : 8.1.3
     @angular/cli                  : 8.1.3
     @ionic/angular-toolkit        : 2.0.0
  
  Cordova:
  
     Cordova CLI       : 7.0.0
     Cordova Platforms : android 8.0.0, browser 6.0.0, ios 4.4.0
     Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 10 other plugins)
  </code></pre>