-
Notifications
You must be signed in to change notification settings - Fork 323
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
Disable the Firebase functionality while still using firebase. #36
Comments
Yes! I saw your fork. Have you encountered a problem using notifications with FCM and other Firebase services? |
No, it all works. Previously I had my own native Android implementation to handle Notifications. So I migrate to using that and you plugin but disabled your fcm part. |
This is very interesting! I want to see how they do with iOS dart background executions. I do not design this plugin to be disabled like this. I will study how this can be done. |
Thanks, the only reason I need this is because I have my own data structure for the notification payload and your plugin requires to use yours. |
Can you send me an example of your payload content? |
Some fields are a bit redundant but this is one of the notification types I'm sending. |
I have done one more experiment. After reading it it stopped working.
handle_notification.dart
|
Firebase cloud message scripts fires the notifications globally across the app. To "disable" my plugin you just need to make the fcmservice.java do nothing. I gonna implement a switch to make my plugin ignore it by default until you activate it intentionally. What do you think? |
Yeah something like I have disabled it on android do I have to do something on iOS? Since it is currently not working with your plugin added to the pubsec.yaml. If I remove it and all references to it, then I receive Notifications. |
Just write your own Service Extension Target and the plugin will not process the notification. |
Sry that I'm only able to answer now. I removed the AwesomeNotificationService and ContentExtension but without success. The notification is still not received. Only when I remove the plugin completely, is it received again. |
This might sound weird.
I'm using a lot of Firebase services including FCM.
And I love your Plugin and would like to use it.
But I have my own payload structure and would like to keep it.
Is there a way to use this plugin and firebase but not the firebase functionality of the plugin?
Currently I forked this plugin and disabled it on the android site by commenting out the FCMService from the Manifest. How would I disable it on iOS?
The text was updated successfully, but these errors were encountered: