【问题标题】:Firebase remote config alternativesFirebase 远程配置替代方案
【发布时间】:2019-01-23 09:35:06
【问题描述】:

是否有其他 Firebase 远程配置的替代方案? 我需要为中国市场提供一个应用程序,但我不确定它是否会起作用

【问题讨论】:

  • 你试过safeDk吗
  • 如果您是一组简单的键/值对并被拉入您的应用程序,您可以尝试使用 Parse Server 作为后端的服务,例如 back4app.com。

标签: firebase firebase-remote-config


【解决方案1】:

我已经用 Parse https://parseplatform.org/ 解决了 https://www.back4app.com/ 还提供了一个带有免费层的 baas 实现

【讨论】:

    【解决方案2】:

    是的,你可以使用华为远程配置,它主要匹配 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/

    【讨论】:

      猜你喜欢
      • 2021-12-27
      • 1970-01-01
      • 1970-01-01
      • 2019-07-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-08
      • 1970-01-01
      相关资源
      最近更新 更多