f-miyu / Plugin.CloudFirestore

MIT License
122 stars 44 forks source link

Nothing happening after i through a command #24

Open boomerman opened 4 years ago

boomerman commented 4 years ago

I am using xamarin froms to develop an uber like application. i am using the code from ducumentation to get cdocument. var document = await CrossCloudFirestore.Current .Instance .GetCollection(Constants.FIREBASE_COLLECTION_USER) .GetDocument(UID) .GetDocumentAsync();

whenever debugger tries to cross this code, nothing happens and the control is lost forever. i am unable to get the data and also unable to touch firestore databse. Please help to resolve.

lucasfre commented 3 years ago

I have the same problem.

lucasfre commented 3 years ago

I was facing the same problem. To test, I was putting the code inside code behind constructor and emulator stopped working.

So, I changed my code to ViewModel and called it on OnAppearing and it worked successfully .

See the example: image