Firebase远程配置的替代方案

11

有没有 Firebase Remote Config 的替代品?我需要为中国市场提供一个应用程序,但我不确定它是否可行。


你尝试过使用 safeDk 吗? - Tejal
如果你只是需要一组简单的键值对来拉取到你的应用程序中,你可以尝试使用以Parse Server为后端的服务,例如back4app.com。 - Daniel M.
2个回答

1

是的,你可以使用华为远程配置,它大多数情况下与 Firebase 的 API 风格相匹配。

注册华为控制台 https://developer.huawei.com/consumer/en/agconnect/remote-configuration/

添加依赖项:

implementation 'com.huawei.agconnect:agconnect-core:1.5.2.300'
implementation 'com.huawei.agconnect:agconnect-remoteconfig:1.5.2.300'
implementation 'com.huawei.hms:hianalytics:6.0.0.300'

获取与 Firebase 远程配置相同的内容:

config = AGConnectConfig.getInstance()
config.fetch(0) // a value of 0 here is for DEBUGGING ONLY, delete for prod (giving a 12 hour refresh period)
    .addOnSuccessListener {
        config.apply(it)
        Log.d(TAG, "Applied")
        //update based on RemoteConfig
    }

参考资料:https://blog.blundellapps.co.uk/remote-configuration-using-appgallery-connect/


1

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接