Do Xamarin support Firebase Cloud Firestore?

后端 未结 1 1539
天涯浪人
天涯浪人 2021-01-14 08:53

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 s

相关标签:
1条回答
  • 2021-01-14 09:10

    "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:

    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)

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

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

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

    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:

    0 讨论(0)
提交回复
热议问题