question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conflict with cordova-plugin-firebase

See original GitHub issue

Hi,

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:open
  • Created 6 years ago
  • Reactions:3
  • Comments:7

github_iconTop GitHub Comments

2reactions
Hanzofmcommented, Mar 28, 2018
2reactions
testanddeploycommented, Mar 27, 2018

I have the same behaviour!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found