For the past few days I have been trying to run background services in my flutter project. I have finally accomplished this and I can now track the users location even when the app is killed. I now need to send this location information to Firebase.
The problem is that the background service runs in Kotlin code since dart does not have a way for running background services. I have configured firebase for my dart project but I am unable to use firebase in my Kotlin code. Is there a way to do this?