Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

co-existence with cordova-plugin-local-notification on iOS #680

Merged
merged 2 commits into from
May 10, 2018
Merged

co-existence with cordova-plugin-local-notification on iOS #680

merged 2 commits into from
May 10, 2018

Conversation

FWink
Copy link
Contributor

@FWink FWink commented May 7, 2018

Local notifications on iOS via cordova-plugin-local-notification were not working.

UNUserNotificationCenter accepts a single delegate that handles the display of notifications. cordova-plugin-firebase now stores a reference to the existing delegate if any and proxies the delegate-calls (cordova-plugin-local-notification is already doing that in the other direction when applicable).

This is basically just undoing some changes made in #576

FWink added 2 commits May 6, 2018 19:45
Local notifications on iOS via cordova-plugin-local-notification are working again.
Click-callback for remote notifications not working right now.

Details:
UNUserNotificationCenter accepts a single delegate that handles the display of notifications. cordova-plugin-firebase now stores a reference to the existing delegate if any and proxies the delegate-calls (cordova-plugin-local-notification is already doing that in the other direction when applicable).
Click-callback for remote notifications are working again.

Both cordova-plugin-firebase and cordova-plugin-local-notification seem to be working fine now.
Not tested yet:
- local notifications that are not immediately triggered while the app is in foreground (e.g. trigger at location or date)
@FWink
Copy link
Contributor Author

FWink commented May 8, 2018

This also seems to solve issues #628 and #660

@dmeij
Copy link

dmeij commented Jun 25, 2018

I just installed the cordova-plugin-local-notification plugin but I still have an problem with receiving the messages in the OnNotificationOpen callback. I have the firebase plugin with this fix. Is there something else I have to do?

@codewise-nicolas
Copy link

codewise-nicolas commented Aug 17, 2018

Im having the same issue as dmeij, using the latest firebase and local-notification plugins.
Local notifications in foreground work, push notifications in foreground (via firebase) dont work.

EDIT:
Looks like beta 3 of the local-notifications fixed it for me, katzer/cordova-plugin-local-notifications#1572 (comment)

jkronborg added a commit to moveleft/cordova-plugin-fcm-with-dependecy-updated that referenced this pull request Apr 4, 2019
With this change the plugin works together with
cordova-plugin-local-notifications. Based on
arnesson/cordova-plugin-firebase#680.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants