Push notification are not getting handled on cold start

Hi all

We face the problem that Push notification are handled by application code when the app is open or in background but not when the app is closed. In that case the application is started when the notification is tapped but no code is executed. Is this the normal behaviour? Any idea?

We’re using Ionic Push Native. Registration of the device and handler code ist done as follows:

In app.component.ts:

    platform.ready().then(() => {
      this.push.register().then((t: PushToken) => {
        return this.push.saveToken(t);
      }).then((t: PushToken) => {
          .subscribe((msg) => {
            console.log(msg.title + ': ' + msg.text);
            // do something with the message
1 Like