是否存在Firebase远程配置的替代方案?我需要为中国市场提供一个应用程序,但我不确定它是否会起作用
发布于 2019-06-20 05:17:31
我已经用解析器https://parseplatform.org/解决了这个问题,还有一个由https://www.back4app.com/提供的具有自由层的baas实现
发布于 2021-11-18 22:12:49
是的,你可以使用华为的远程配置,它与Firebase for 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/
https://stackoverflow.com/questions/54324071
复制相似问题