-
Notifications
You must be signed in to change notification settings - Fork 4k
Broken HowTo/Example... #2410
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
Comments
Please someone who successfully installed fcm let us knw what we should do exactly :/ |
Can someone please bump up the priority of this issue? The plugin is not usable for anyone trying to add it to their project, so this not only a documentation issue. For all practical purposes, anyone trying to integrate firebase_messaging into their project now, can't do it! |
the same issue with me can anyone help |
Add this class :
and call it in Application like
dont forget to add name=".App" in the manifest file. |
@a-elhaddad Thanks. Could you add |
Do you know if this java code is really required? If you are using flutter with v2 embedding, do need this code? or is it for the older version of flutter? |
@a-elhaddad thanks, your code worked well. Here's kotlin translation:
|
I'm on the beta channel of flutter. I copied the kotlin files, set package on the top and edit the manifest to change MainActivity into Application but the application crash immediatly. It does build tho... I ran flutter clean, tried to check my package path but. Not working, do you guys had a similar issues ? |
@izio38 my solution works for master and stable branches. Did not tested on beta. |
However, these proposed solutions are improvised, as it only allows the registration of 1 package, so it is not possible to use it together with WorkManager or AlarmManager, as the only package registered in the background is firebase. They need to update the tutorial on pub.dev, as they are upgrading to Android V2 but I did SEVERAL tests and it seemed like a very bad transition. It is not working, so it is necessary to improvise and be content with the use of only 1 package in the background. I hope they soon update the README - Getting Started from pub.dev to Android v2 embedding. |
Wondering when this is going to be fixed. I Basically can't use the package now. |
Like me... its impossible to get runing background notifications... I mean, the push occurs and shows the notification, but the onBackgroundMessage never works... |
Closing in favour of trying the latest messaging version which has since this issue was created been heavily reworked to improve it along with detailed documentation on how to correctly setup your application: https://firebase.flutter.dev/docs/messaging/overview If you still have a problem please raise a new GitHub issue with up to date information and code snippets if possible. Thanks. |
Hi,
Can someone from the support team please fix the read me/example on pub.dev?
https://pub.dev/packages/firebase_messaging
I have followed the exact steps to add firebase messaging to a newly created project. When I do as suggested on the link above
and I am getting errors like:
The github example app is doing something completely different. Can someone please have a single version for howto use this plugin? Not sure if the example project is the new version or the one on pub.dev!
Thanks!
The text was updated successfully, but these errors were encountered: