Firebase 远程配置替代方案
Firebase remote config alternatives
是否有 Firebase 远程配置的替代方案?
我需要为中国市场提供一个应用程序,但我不确定它是否有效
我用 Parse 解决了 https://parseplatform.org/
还有一个由 https://www.back4app.com/ 提供的带有免费套餐
的 baas 实现
是的,你可以使用华为远程配置,它主要匹配 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/
是否有 Firebase 远程配置的替代方案? 我需要为中国市场提供一个应用程序,但我不确定它是否有效
我用 Parse 解决了 https://parseplatform.org/ 还有一个由 https://www.back4app.com/ 提供的带有免费套餐
的 baas 实现是的,你可以使用华为远程配置,它主要匹配 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/