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.
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.
Conflict between this two plugins.
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.
Same problem here
I have the same behaviour!
Same problem here.
The problem occurs also with:
https://github.com/fechanique/cordova-plugin-fcm
and
The same problem with fcm-plugin.
Ok, I can use v0.8.5, but it鈥檚 not work on android 8.
... very bad situation
Anybody managed to solve this?
My build doesn't work when I combine these two plugins:
What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForRelease'.
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver
What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForRelease'.
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver
Any suggestion?
Thanks
Most helpful comment
Same problem here.
The problem occurs also with:
https://github.com/fechanique/cordova-plugin-fcm
and
https://github.com/phonegap/phonegap-plugin-push