nativescript-local-notifications icon indicating copy to clipboard operation
nativescript-local-notifications copied to clipboard

Possible problems when using both this and Firebase plugin on android

Open PeterStaev opened this issue 5 years ago • 4 comments
trafficstars

It seems there is is a problem when using both LocalNotifications and Firebase plugins in the same app under android. And more specifically if you kill the app and then respond via an action, the local notification handler is not triggered. In all other cases - when the app is in either foreground or background seems the callback is correctly triggered. It is probably something similar to #107

PeterStaev avatar Feb 13 '20 13:02 PeterStaev

I wrote https://github.com/edusperoni/nativescript-shared-notification-delegate for this exact reason. My PRs with the fixes are on both repos and allow any library to share a single delegate (interception is also possible):

https://github.com/EddyVerbruggen/nativescript-plugin-firebase/pull/1272 https://github.com/EddyVerbruggen/nativescript-local-notifications/pull/155

@saeb-panahifar helped test and validate the fixes, just waiting on @EddyVerbruggen to merge them.

edusperoni avatar Feb 13 '20 17:02 edusperoni

@edusperoni your PRs are for iOS, this is for android 😉

PeterStaev avatar Feb 13 '20 18:02 PeterStaev

I see. You should probably add that to the issue description, as #107 is describing the iOS scenario.

edusperoni avatar Feb 13 '20 18:02 edusperoni

FYI the related iOS issue in this repo (and the Firebase one) is in my list of open tabs in Chrome. Trying to find some time every day to get this processed. I think I'll just merge them because they've already been tested. @edusperoni many thanks for your efforts!

EddyVerbruggen avatar Feb 13 '20 19:02 EddyVerbruggen