Skip to content
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 clear instructions on how to use it with Kotlin #3411

Closed
i6x86 opened this issue Aug 31, 2020 · 1 comment · Fixed by #4012
Closed

firebase_messaging clear instructions on how to use it with Kotlin #3411

i6x86 opened this issue Aug 31, 2020 · 1 comment · Fixed by #4012
Labels
good first issue Good for newcomers plugin: messaging type: documentation Improvements or additions to documentation

Comments

@i6x86
Copy link

i6x86 commented Aug 31, 2020

I'm trying to implement the onBackgkround message handle but the instructions suppose that the project was created with java despite the default now is Kotlin.
So I created Application class in the kotlin folder but now there are a couple of errors saying:

Cannot access 'android.app.Application' which is a supertype of 'com.my.app.Application'.
and:
Cannot access 'java.lang.Object' which is a supertype of 'com.steepcode.mdd.Application'. Check your module classpath for missing or conflicting dependencies
I think it might has to do with the fact the my io.flutter.plugins folder is in folder named java and not in the kotlin one, but have no idea what to do.

@beshr-eldebuch
Copy link

Check out this Pull request

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers plugin: messaging type: documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants