transistorsoft / flutter_background_geolocation_firebase

Firebase proxy for Flutter Background Geolocation SDK
MIT License
21 stars 7 forks source link

Changing and using Firebase Project from Dart #25

Open iDeliverWilhem opened 2 years ago

iDeliverWilhem commented 2 years ago

Is your feature request related to a problem? Please describe. We are not using google-services.json setup instead we are using Flutterfire initialization from dart like below. firebase App1 = await Firebase.initializeApp( options: DefaultFirebaseOptionsProd.currentPlatform, );

firebase App2 = await Firebase.initializeApp( options: DefaultFirebaseOptionsDev.currentPlatform, );

Describe the solution you'd like Can we change the Firebase project from the config on the fly to change the location of the firebase database?

Describe alternatives you've considered Any advise or solution would be highly appreciated

Additional context Add any other context or screenshots about the feature request here.

christocracy commented 2 years ago

I haven’t touched this code in two years. Maybe try experimenting around this line?

iDeliverWilhem commented 2 years ago

I'll try, thanks 👍

iDeliverWilhem commented 2 years ago

Is there a way to disable the adaptor and create own function to save locations to firebase storage?

iDeliverWilhem commented 2 years ago

Hi @christocracy ,

Looks like I can't do it. Will you be able to help us with this one?

Regards, Wil

christocracy commented 2 years ago

What did you try?

iDeliverWilhem commented 2 years ago

Just tried to understand how to pass the configuration. I don't have the skills to continue.