我正在制作一个使用Firebase实时数据库的Android应用程序。但是,我希望用户可以选择使用我的Firebase数据库还是使用自己的数据库。这有可能吗?有没有办法配置android应用,以便用户可以使用自己的Firebase-Database?也许通过使用自己的API密钥/项目URL或其他东西?
我正在寻找Google-Drive API之类的实现,可以在其中将内容存储到用户自己的Google Drive中。
Currently, I can think of only one possible way to achieve this : user compiling their own app with their own google.json
file.
You would have to get them to provide all the data that would be passed to a call to initializeApp via FirebaseOptions, then use the returned FirebaseApp instance for all database access.
他们还必须配置Firebase身份验证和安全规则,以使它们没有公开可读写的数据库实例,并且您的应用必须管理用户登录。
如果您选择实施,那么对于您和用户而言,这都是一笔不小的工作。