ionic-team / ionic-team/capacitor-plugins

feat: implement optional group property for Preferences API

Open
#2,479 0 comments 0 reactions 0 assignees View on GitHub
platform: android platform: ios platform: web
Dominant language
Java
Stars
678
Forks
685
Avg merge
4d 22h
Merged PRs (30d)
3

Description

## Feature Request

### Plugin
@capacitor/preferences

### Description
Currently, all preferences share a global flat namespace configured globally by the `configure({group})` API.

This makes it difficult to manage separate logical buckets (e.g., App Settings vs. User Preferences) or clear specific sets of data without affecting others, especially during app initialization.

### Platform(s)
Android, iOS, Web

### Preferred Solution
I'd like to add an optional `group: string` property in `GetOptions`, `SetOptions`, `RemoveOptions`.
Creating an optional argument `KeysOptions` with `group: string`.

This property would be set to the current configured group by default.

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.