-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[firebase_messaging] App crashes on startup after adding onBackgroundMessage #3048
Comments
Hi @GuilhermePontes9 could you provide the stack trace of what your error is when you app crashes? |
Sorry, I don't know if it's the correct way to do it but I run .\gradlew build --stacktrace and the result was this:
BUILD SUCCESSFUL in 22s |
@GuilhermePontes9 I should have been clearer. I was hoping to see the stack trace (hopefully containing some errors) you get when the app crashes. |
Sorry for my misunderstanding, I'm still in the process of learning all this!
|
I looked again at the instructions and realised that I added .Application in the activity tag, not on the application tag in the AndroidManifest. You can delete the issue, my bad. Thank you for your time! |
I followed everything written in firebase_messaging readme. After adding the onBackgroundMessage handler and "Application.java" to AndroidManifest the app installs but crashes on startup. What am I doing wrong?
Thanks in advance
The text was updated successfully, but these errors were encountered: