today-extension
How to access CoreData model in today extension (iOS)
What you really want is to access your persistent store (most likely a SQLite database). In order to achieve that, you need to configure App Groups and make sure that your host app configures the Core Data stack using your shared container (so your store is accessible in extension as well). Something like: NSString *containerPath … Read more
Flutter: Is it somehow possible to create App Widgets (Android) and Today Extensions (iOS)? [duplicate]
There is no guide or docs showing how to implement a App Widget for a flutter app. It is definitely possible to implement a app widget with native code. Just create a flutter project and open the android part with android studio, just implement your home screen widget, it’ll work like a charm. I just … Read more
Today App Extension Widget Tap To Open Containing App
EDIT: Ok, just a little correction here. I got it working with placing a button over the label just like suggested above and the following code: – (IBAction) goToApp: (id)sender { NSURL *url = [NSURL URLWithString:@”floblog://”]; [self.extensionContext openURL:url completionHandler:nil]; } I linked it to a “Touch Up Inside” event. However, this also causes the app … Read more
Sharing UserDefaults between extensions
You cannot use UserDefaults.standard to share data between a host app and its app extension. You instead have to create a shared container with UserDefaults(suiteName:) to share data. Even though an app extension bundle is nested within its containing app’s bundle, the running app extension and containing app have no direct access to each other’s … Read more