notificationValuePropReminderCooldownDays property

int get notificationValuePropReminderCooldownDays

Number of days to wait before re-prompting a user who declined the in-app value-proposition sheet (the "Not Now" cohort, distinct from system-denied).

Can be set via:

  • Code: AppConfigBase.notificationValuePropReminderCooldownDaysDefault = 14
  • Build flag: --dart-define notificationValuePropReminderCooldownDays=14
  • Firebase Remote Config: notificationValuePropReminderCooldownDays

Default: 30 days

Implementation

static int get notificationValuePropReminderCooldownDays {
  const envValue = int.fromEnvironment(
    'notificationValuePropReminderCooldownDays',
    defaultValue: -1,
  );
  if (envValue != -1) {
    return envValue;
  } else {
    final remoteValue =
        g<RemoteConfigRepoInt>().getInt('notificationValuePropReminderCooldownDays');
    if (remoteValue > 0) {
      final bounds = configBounds['notificationValuePropReminderCooldownDays']!;
      return remoteValue.clamp(bounds.min, bounds.max);
    } else {
      return defaultRemoteConfig['notificationValuePropReminderCooldownDays'] as int;
    }
  }
}