Do Xamarin support Firebase Cloud Firestore?

2020-04-15 11:12发布

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条回答
爱情/是我丢掉的垃圾
2楼-- · 2020-04-15 11:47

"Absolutely yes!"

There is a very useful plugin for Xamarin Forms (Android and iOS):

Plugin.CloudFirestore

How to use?

  1. Create a new Firebase project:

enter image description here

Follow the steps to put a name for your project and enable Analytics.

  1. In your Firebase project create an Android application and download the file generated (google-services.json)

enter image description here enter image description here

  1. In your Firebase project create an iOS application and download the file generated (GoogleService-Info.plist).

enter image description here enter image description here

  1. In your Xamarin Forms Android project (YourProject.Android) paste the file google-services.json in the main folder

enter image description here

  1. In your Xamarin Forms iOS project (YourProject.iOS) paste the file GoogleService-Info.plist in the main folder.

enter image description here

  1. 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:

enter image description here

查看更多
登录 后发表回答