Firebase remote configuration with audience not working

The following are the steps I follow to create a custom configuration state based on a custom audience -

  • First I created a custom property called OEM

User property

  1. I created a dynamic link with utm_sourcelikegoogle-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

  2. I created an audience OEM-Micromaxwith the condition that the custom property OEMcontainsgoogle-micromax

The audience

  1. Then I created a remote configuration condition based on Micromax audience

remote configuration

  1. Then I process the dynamic link and set the user property to the value returned from the link 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);
        }
      }
    });
    
  2. , oem_admob_banner_unit_id , - Micromax.

?

+4
2

, , . ( , / , , , , ). , , , , . , , , 10.

+1

,

FIRRemoteConfig - (BOOL)activateFetched

Active Config, ( , ).

true, Fetched Config, .

false, Fetched Config, Fetched Config.

0

Source: https://habr.com/ru/post/1667198/


All Articles