notificationValuePropReminderMaxAskCount property
int?
get
notificationValuePropReminderMaxAskCount
Maximum number of value-proposition reminders shown to a user who
previously declined the in-app value-proposition sheet. Returns null
when unlimited (cooldown is the sole gate).
Layered resolution mirrors notificationGoToSettingsMaxAskCount —
see its doc-comment for the layer-specific RC value <= 0 = unset
convention and how it relates (does NOT contradict) the inline helper
API contract from shouldShowValuePropReminder.
Default: null (unlimited)
Implementation
static int? get notificationValuePropReminderMaxAskCount {
const envValue = int.fromEnvironment(
'notificationValuePropReminderMaxAskCount',
defaultValue: -1,
);
if (envValue != -1) {
return envValue;
}
final remoteValue =
g<RemoteConfigRepoInt>().getInt('notificationValuePropReminderMaxAskCount');
if (remoteValue > 0) {
final bounds = configBounds['notificationValuePropReminderMaxAskCount']!;
return remoteValue.clamp(bounds.min, bounds.max);
}
// RC value <= 0 (including 0 and negatives) → unset, fall through to
// programmatic default (which itself may be null = unlimited).
return defaultRemoteConfig['notificationValuePropReminderMaxAskCount'] as int?;
}