I am having a issue with linking Xamarin Forms to Firestore. I have a collection called Candidates in my Firestore Database in Firebase, and I am using the Plugin.CloudFirestore nuget to link Firestore and Xamarin Forms
I have tried using the 'Get' example on the following link:
https://github.com/f-miyu/Plugin.CloudFirestore
var query = await CrossCloudFirestore.Current
.Instance
.GetCollection("Candidates")
.GetDocumentsAsync();
var documents = query.ToObjects<Candidate>();
When I run the code I get the following message
"Unhandled Exception: Java.Lang.IllegalStateException: FirebaseApp with name [FirebasePlugin] doesn't exist."
Any ideas on what is going wrong?