firebase / firebase/firebase-android-sdk

[firebase_config] setDefaults option without replace all

Open
#7,249 1 comment 0 reactions 0 assignees View on GitHub
api: remoteconfig type: feature request
Dominant language
Java
Stars
2.6k
Forks
710
Avg merge
2d 9h
Merged PRs (30d)
31

Description

## What feature would you like to see?

Add the possibility to update setDefaults without replace the old ones if keys aren't the same.

Example:

```java
public Task setDefaultsAsync(@NonNull Map defaults, @NonNull boolean replace)
```
if `replace` false the new parameters will be added with the old ones. If true, it will be replaced.

## How would you use it?

I'm using the [add-to-app ](https://docs.flutter.dev/add-to-app)implementation and the host app already has defaults values. But in the flutter side I want add more defaults and I don't want add these defaults in android app code.

I opened a issue in https://github.com/firebase/flutterfire/issues/17620 but firstly this feature must be available in the native SDK.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.