Closed felixliu226 closed 6 years ago
I am also facing the same issue, the $rootScope.$on('$cordovaPushV5:notificationReceived', function (event, data) {} event is not called when the app is killed.
Please try out with latest master or reopen the ticket again. I cannot reproduce.
WARNING: IF YOU IGNORE THIS TEMPLATE, WE'LL IGNORE YOUR ISSUE. YOU MUST FILL THIS IN!
Provide a general summary of the issue.
Your Environment
cordova -v
): 7.0.1cordova platform ls
): android 6.2.3Expected Behavior
I use the following code to set a local notification
I want to get the data when I enter the app. It works when the app is keep running at background, and I can see the data from log. It should also be work if we kill the app after the setup of notification.
Actual Behavior
However, after we setup the notification, if we kill the app, I can still received the notifications but cannot get the data.
Steps to Reproduce
Context
I tried two android devices, it's still there. And also add the platform.ready() condition before the
localnotification.on('click', ...)
but still not worksDebug logs