TheCocoaProject / cordova-plugin-nativestorage

Cordova plugin: Native storage of variables in Android, iOS and Windows
http://thecocoaproject.github.io/
Apache License 2.0
292 stars 106 forks source link

Add support for NSUserDefaults for app groups #80

Closed DavidStrausz closed 2 years ago

DavidStrausz commented 7 years ago

Feature request: I'd like to use this plugin to save user defaults for an app group and for later use in a today widget extension. Please let me know if this is possible somewhere in the near future or if I have to use this unmaintained plugin or a custom plugin.

Example from apple docs:

// Create and share access to an NSUserDefaults object
NSUserDefaults *mySharedDefaults = [[NSUserDefaults alloc] initWithSuiteName: @"com.example.domain.MyShareExtension"];

// Use the shared user defaults object to update the user's account
[mySharedDefaults setObject:theAccountName forKey:@"lastAccountName"];
alokrajiv commented 7 years ago

@GillesC anyway I can help?

jasonz1987 commented 6 years ago

+1 need this