ionic-team / ionic-team/capacitor-plugins
feat: [Storage Plugin] Support for iOS suites
- 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
Assessment
This issue has not been assessed yet.