You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The instructions here for implementing Firebase messaging in Flutter are very comprehensive and easy to understand. However, I got a little lost with the Optionally handle background messages section. Step 2 reads
Add an Application.java class to your app in the same directory as your MainActivity.java
All new Flutter projects use Kotlin, not Java, by default - AFAIK this has been so for at least several months now. I have a MainActivity.kt file, no MainActivity.java file. What do I do here? Convert the supplied Application.java to Application.kt line by line?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
The instructions here for implementing Firebase messaging in Flutter are very comprehensive and easy to understand. However, I got a little lost with the Optionally handle background messages section. Step 2 reads
Add an Application.java class to your app in the same directory as your MainActivity.java
All new Flutter projects use Kotlin, not Java, by default - AFAIK this has been so for at least several months now. I have a MainActivity.kt file, no MainActivity.java file. What do I do here? Convert the supplied Application.java to Application.kt line by line?
Beta Was this translation helpful? Give feedback.
All reactions