ionic-team / ionic-team/capacitor-plugins

feat: [Storage Plugin] Support for iOS suites

Open
#226 12 comments 19 reactions 0 assignees View on GitHub
enhancement platform: ios plugin: preferences
Dominant language
Java
Stars
678
Forks
685
Avg merge
4d 22h
Merged PRs (30d)
3

Description

# Feature Request

## Describe the Feature Request
While developing extensions in iOS, you may find a need to share application or user data between the host app and the extension.

To do so, we need to pass a "suite name" at the initialization of the [userDefaults](https://github.com/ionic-team/capacitor/blob/8158d910905790dd98bfffe3b927e445ecfb8c6e/ios/Capacitor/Capacitor/Plugins/Storage.swift#L14)

[`init?(suiteName suitename: String?)` ](https://developer.apple.com/documentation/foundation/userdefaults/1409957-init)

## Platform Support Requested

- [ ] Android
- [x] iOS
- [ ] Electron
- [ ] Web

## Describe Preferred Solution

Possibility to initialize the store with a suite name.

## Describe Alternatives

An old cordova plugin is doing the job : https://github.com/apla/me.apla.cordova.app-preferences

## Related Code

## Additional Context

May concerns Android as well.

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.