-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/packages
#5210Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: shared_preferencesPlugin to read and write Shared PreferencesPlugin to read and write Shared Preferencespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specificallyteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Description
Note : If you want/need this too, react to this comment so that it gets reviewed !
Request
It would be really useful to be able to specify a suiteName in SharedPreferences' iOS implementation.
Usages
For example, if we want to create Widgets on iOS, the Widget uses a different NSUserDefaults environment than the main app, which makes it impossible to access the widget's settings from our Flutter App and back. Having the ability to specify a suiteName effectively allows us access a same App Group and thus persist data between the twos.
Here is a my PR solving this issue : flutter/plugins#2861
More
More resources on the issue : Stack overflow question treating about App Groups
vincenttarrit, gaetschwartz, jimmyrogue, LachlanGrant, rafarbr and 51 moreAlekcei, MrJai, netlob, Bennik2000, mdupless and 14 morenetlob, MrJai, Bennik2000, mdupless, FranWeidt and 7 more
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: shared_preferencesPlugin to read and write Shared PreferencesPlugin to read and write Shared Preferencespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specificallyteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team