Xamarin是否支持Firebase Cloud Firestore? [英] Do Xamarin support Firebase Cloud Firestore?

查看:60
本文介绍了Xamarin是否支持Firebase Cloud Firestore?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用xamarin和Cloud Firestore创建应用程序,但是我无法在任何地方找到相关文档.确实确实xamarin表单支持firebase云存储,如果是,请向我发送有关连接性和基本Crud操作的相关链接.

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.

推荐答案

绝对可以!"

有一个非常有用的Xamarin Forms插件(Android和iOS):

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

Plugin.CloudFirestore

如何使用?

  1. 创建一个新的Firebase项目:

按照步骤为您的项目命名并启用Analytics(分析).

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

  1. 在Firebase项目中,创建一个Android应用程序并下载生成的文件(google-services.json)

  1. 在Firebase项目中,创建一个iOS应用程序并下载生成的文件(GoogleService-Info.plist).

  1. 在您的Xamarin Forms Android项目(YourProject.Android)中,将文件google-services.json粘贴到主文件夹中

  1. 在您的Xamarin Forms iOS项目(YourProject.iOS)中,将文件GoogleService-Info.plist粘贴到主文件夹中.

  1. 按照官方文档部分的设置进行操作 a>适用于两个平台(Android/iOS),并喜欢使用它.
  1. Follow the steps of the Setup section on the official documentation for both platforms (Android/iOS) and enjoy using it.


重要提示:如果您尚未对Cloud Firestore数据库进行身份验证,则可以设置其规则,如下图所示:


IMPORTANT: If you haven't authentication for your cloud Firestore database, you can setup its rules like the below image:

这篇关于Xamarin是否支持Firebase Cloud Firestore?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆