首页 文章

带有受众群体的Firebase远程配置不起作用

提问于
浏览
4

以下是我创建基于自定义受众群体的远程配置条件的步骤 -

  • 首先,我创建了一个名为OEM的用户属性

User property

  • 我创建了一个动态链接 utm_sourcegoogle-micromax

https://d83j2.app.goo.gl/?link=http://myapp.in&apn=com.myapp.app&utm_source=google-micromax&utm_medium=micromax_device&utm_campaign=promo_google_micromax

  • 我创建了一个 OEM-Micromax Spectator ,条件是用户属性 OEM 包含 google-micromax

Audience

  • 然后,我根据Micromax受众创建了一个远程配置条件

remote config

  • 然后我处理动态链接并将用户属性设置为从链接 utm_source 返回的值
AppInvite.AppInviteApi.getInvitation(mGoogleApiClient, this, autoLaunchDeepLink)
.setResultCallback(
new ResultCallback<AppInviteInvitationResult>() {
  @Override
  public void onResult(AppInviteInvitationResult result) {
    if (result.getStatus().isSuccess()) {
      //First time user
      if (StorageHelper.getBooleanObject(StorageHelper.FIRST_TIME_USER, true)) {

        Intent intent = result.getInvitationIntent();
        String deepLink = AppInviteReferral.getDeepLink(intent);
        Uri uri = Uri.parse(deepLink);
        String utm_source = uri.getQueryParameter("utm_source");
        FirebaseEvents.setUserProperty(utm_source);

        StorageHelper.setBooleanObject(StorageHelper.FIRST_TIME_USER, false);
      }
      FirebaseEvents.logEventInvite(true);
    }
  }
});
  • 现在,当我从远程配置中获取 oem_admob_banner_unit_id 参数时,它仍然返回 Default 值而不是Micromax受众的值 .

我究竟做错了什么 ?

2 回答

  • 1

    不确定这是否与您的问题有关,但我也无法让受众驱动的远程配置工作 . (我碰巧是基于app事件/参数的 Spectator ,所以这是一个不同的场景,但可能是类似的问题) . 在我通过反复触发我的事件迫使 Spectator 中有足够的用户之后,它终于开始工作了 . 不确定它有多少,可能在10左右 .

  • 0

    拿取后,你应该打电话

    FIRRemoteConfig - (BOOL)activateFetched
    

    将Fetched Config数据应用于Active Config,从而使应用程序的行为和外观更新生效(取决于应用程序中配置数据的使用方式) . 如果有Fetched Config,则返回true,并且它已激活 . 如果未找到Fetched Config,或者已经激活了Fetched Config,则返回false .

相关问题