Reputation: 749
I was trying out the, now available, FirebaseFirestore
for Xamarin
, but when i try to get an instance:
App = FirebaseApp.InitializeApp(context);
Store = FirebaseFirestore.GetInstance(App);
Like when using FirebaseAuth
:
Auth = FirebaseAuth.GetInstance(App);
It throws FirebaseOptions.getProjectId() cannot be null
Is it still borken, or am i doing it wrong?
Upvotes: 1
Views: 1086
Reputation: 1049
This issue was reported to the Xamarin Google Play services library.
Finally got a response from support, there is nothing we have done wrong, its an bug on Xamarin's side.
We are currently waiting for this fix to be released.
Upvotes: 0
Reputation: 323
I had a similar problem, and solved it by changing
'com.google.gms:google-services:3.0.0'
to
'com.google.gms:google-services:3.1.0'
in my project build.gradle
file. I'm not sure if this applies to Xamarin.
Upvotes: 1