简体   繁体   English

如何使用 firebase 连接 webapp 和 android 应用程序?

[英]How do I connect a webapp and an android app with firebase?

I have been trying to learn how to create an app that allows people to upload images via the web or android.我一直在尝试学习如何创建一个允许人们通过 web 或 android 上传图像的应用程序。

I know that Android uses content providers to implement a mechanism for the sharing of data between applications.我知道 Android 使用内容提供者来实现应用程序之间共享数据的机制。 More specifically, Android uses the MediaStore API to make use of this functionality.更具体地说,Android 使用 MediaStore API 来利用此功能。 However, that is limited to other Android devices.但是,这仅限于其他 Android 器件。

I was wondering how I would go about connecting a web app made using reactjs to an Android app preferably using firebase. I was wondering how I would go about connecting a web app made using reactjs to an Android app preferably using firebase. However, if it isn't possible in firebase that would be okay too,但是,如果在 firebase 中不可能,那也没关系,

I am a beginner in web app development, so I am not particularly sure about how the software's architecture will look like.我是 web 应用程序开发的初学者,所以我不太确定软件的架构会是什么样子。

I have been struggling to find an updated concise solution online.我一直在努力在线寻找更新的简洁解决方案。 Can anyone point me in the right direction and if not point me to some resources that will guide me in the right direction.任何人都可以指出我正确的方向,如果不能指出一些资源,将引导我走向正确的方向。

Thank you!谢谢!

Attach/configure both of your application to use same database and storage bucket in firebase在 firebase 中附加/配置两个应用程序以使用相同的数据库和存储桶在此处输入图像描述

As you can see I connected my android application as well as web administration application to same firebase project.如您所见,我将我的 android 应用程序以及 web 管理应用程序连接到同一个 firebase 项目。 在此处输入图像描述

As you can see there is an add app option in firebase console where you can select platform.如您所见,在 firebase 控制台中有一个添加应用程序选项,您可以在其中 select 平台。 Register both of your application on same project and thats it.在同一个项目上注册您的两个应用程序,仅此而已。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM