LocalNotifications on click method does not run when app is closed


#1

When my app is running on background following code works fine, I can handle notification.

localNotifications.on("click").subscribe(() => {
      console.log("noti on click ");
});

But when I kill the app It’s not working. Even if i put above code inside a plaform.ready() method.

Here is my ionic info :

@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 8.0.0

local packages:

@ionic/app-scripts : 3.1.9
Cordova Platforms : ios 4.5.4
Ionic Framework : ionic-angular 3.9.2

System:

ios-deploy : 1.9.2
Node : v8.11.0
npm : 6.1.0
OS : macOS High Sierra
Xcode : Xcode 9.4.1 Build version 9F2000