Conflict with cordova-plugin-firebase
See original GitHub issueHi,
Like this issue (https://github.com/katzer/cordova-plugin-local-notifications/issues/1492) I have a conflict with another plugin. I created another issue because it’s with another plugin. But I think this is connected.
Your Environment
- Plugin version: 0.9-beta2
- Platform: iOS
- OS version: 11
- Device manufacturer / model:
- Cordova version : 7.0.1
- Cordova platform version : Installed platforms: browser 5.0.3 ios 4.5.4 Available platforms: android ~6.2.2 blackberry10 ~3.8.0 (deprecated) osx ~4.0.1 webos ~3.7.0
- Plugin config
- Ionic Version (if using Ionic) v1
Expected Behavior
cordova-plugin-local-notifications and cordova-plugin-firebase worked together. When app is in foreground, local notifications should be display when cordova-plugin-firebase is calling.
Actual Behavior
Conflict between this two plugins.
Steps to Reproduce
step-1 : try
if (cordova.platformId == 'ios') {
//window.FirebasePlugin.grantPermission();
}
cordova.plugins.notification.local.schedule({
title: "pouet",
text: "pouet",
foreground: true
});
step-2: uncomment the line
if (cordova.platformId == 'ios') {
window.FirebasePlugin.grantPermission();
}
cordova.plugins.notification.local.schedule({
title: "pouet",
text: "pouet",
foreground: true
});
Like this issue : https://github.com/katzer/cordova-plugin-local-notifications/issues/1492
If i tried
window.FirebasePlugin.onNotificationOpen(function (notif) {
console.log('notif:received',notif);
if(notif.tap){
listener.next(notif);
}else{
cordova.plugins.notification.local.schedule({
title: notif.title,
text: notif.body,
data: notif,
foreground: true
});
}
listener.next(notif);
}, function (error) {
listener.error(error);
});
The local notification is not display yet.
If cordova-plugin-local-notifications push a notification, firebase notifications not yet pushed.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:7
Top Results From Across the Web
Conflicts with cordova-plugin-firebasex · Issue #22 - GitHub
I can install mobile-messaging-cordova-plugin normally, but the two plugins together don't work because they both use google-service. I need to ...
Read more >Conflict between cordova-plugin-firebasex ... - Stack Overflow
As the project is being built, the build process will try to fetch the analytics package for you and it would fail to...
Read more >Known Incompatible Cordova Plugins - Capacitor
While we've tested a number of popular Cordova plugins, it's possible Capacitor doesn't support every Cordova plugin. Some don't work with Capacitor or ......
Read more >[Firebase Mobile] Incompatibility(conflicts ... - OutSystems
yes, there's a known conflict of cordova-plugin-firebase with cordova-plugin-googleplus, now that is because of the Gradle version ...
Read more >cordova-plugin-firebasex - npm
Brings push notifications, analytics, event tracking, crash reporting and more from Google Firebase to your Cordova project. Supported platforms ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same problem here.
The problem occurs also with:
https://github.com/fechanique/cordova-plugin-fcm
and
https://github.com/phonegap/phonegap-plugin-push
I have the same behaviour!