问题
I have a requirement to create app using xamarin and cloud firestore, but i am not able to find related documents anywhere. do really xamarin forms supports firebase cloud store, if yes please send me related link for connectivity and basic crud operation.
回答1:
"Absolutely yes!"
There is a very useful plugin for Xamarin Forms (Android and iOS):
Plugin.CloudFirestore
How to use?
- Create a new Firebase project:
Follow the steps to put a name for your project and enable Analytics.
- In your Firebase project create an Android application and download the file generated (google-services.json)
- In your Firebase project create an iOS application and download the file generated (GoogleService-Info.plist).
- In your Xamarin Forms Android project (YourProject.Android) paste the file google-services.json in the main folder
- In your Xamarin Forms iOS project (YourProject.iOS) paste the file GoogleService-Info.plist in the main folder.
- Follow the steps of the Setup section on the official documentation for both platforms (Android/iOS) and enjoy using it.
IMPORTANT: If you haven't authentication for your cloud Firestore database, you can setup its rules like the below image:
来源:https://stackoverflow.com/questions/54838615/do-xamarin-support-firebase-cloud-firestore