phonegap / phonegap-plugin-push

Register and receive push notifications
MIT License
1.94k stars 1.91k forks source link

Cannot catch user click if app is opened #2242

Open campagna91 opened 6 years ago

campagna91 commented 6 years ago

Expected Behaviour

When a push notification arrive user can has his application opened or not: in both cases user can click or not on the push notification.

We would like to catch the "click" event information.

Actual Behaviour

The coldstart parameter return false if app is opened event if user has click on push notification (as API documentation).

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

Both android and ios - is not platform dependent

Cordova CLI version and cordova platform version

cordova --version - 7.0.1
cordova platform version android - 6.2.3
cordova platform version ios - 4.5.4

Plugin version

cordova plugin version | grep phonegap-plugin-push   - 1.10.5 

Question

Is there a way to detect if user is clicking on the notification or not?

Thanks in advance

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

macdonst commented 6 years ago

@campagna91 when you click on the notification the on('notification') event is called that's the click event.