phonegap / phonegap-plugin-push

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

(ios) pass data to on('notification') while app is in foreground #2907

Open duca14036 opened 4 years ago

duca14036 commented 4 years ago

Update support of latest Firebase/Messaging Receive push data while app is in foreground

Description

Update IF condition in case if app is in foreground to pass data and receive inside on('notification')

Related Issue

Issue: https://github.com/phonegap/phonegap-plugin-push/issues/2783

Motivation and Context

Receiving push while app is in foreground is also important

How Has This Been Tested?

Send push notification using suggested payload from docs

Screenshots (if appropriate):

Types of changes

Checklist: