Posts

Post not yet marked as solved
1 Replies
840 Views
I have some iOS 14 widgets that are not crashing locally. Yet I can see on the crash report in Xcode that there are multiple crashes occurring in production, when I symbolicate them it insinuates it's the result of a 3rd party library. Yet once this library is removed, the crashes are still occurring (on a beta build). For widgets, if they crash do they default to the place holder? Debugging via widgets is not proving to be very helpful for this situation. What else can I do here?
Posted Last updated
.
Post not yet marked as solved
0 Replies
664 Views
Context: I'm using a Custom Intent, called TestConfiguration, for the new iOS 14 widget I've created and I have "Dynamic Options" checked. My goal is to allow the user to edit the widget view, based off an option selected from a list retrieved from the backend, and have the changes be reflected on the widget itself. I have a class called IntentHandler that adheres to TestConfigurationIntentHandling. Within this delegate method func provideAssetsOptionsCollection(for intent: TestConfigurationIntent, with completion: @escaping (INObjectCollection<TestIntentItem>?, Error?) -> Void) { I've tried to call the backend in this delegate method, but it always tells me "No options were provided for this parameter". So I dug in the documentation and saw the confirm delegate method and implemented it like so: func confirm(intent: TestConfigurationIntent, completion: @escaping (TestConfigurationIntentResponse) -> Void) { &#9;&#9;completion(TestConfigurationIntentResponse(code: .inProgress, userActivity: nil)) &#9;&#9;backendService.fetchData() { result in &#9;&#9;&#9;&#9;//format all the data &#9;&#9;&#9;&#9;completion(TestConfigurationIntentResponse(code: .success, userActivity: nil)) &#9;&#9;} } But this didn't seem to work either since it's still giving me the same response. What am I not understanding / how can I get this done?
Posted Last updated
.
Post marked as solved
2 Replies
978 Views
We use keychain to sync some data between the widget and the main app. When the widget is being previewed in the gallery, it shows the correct data that was synced from the app - but the moment the user adds the widget on to their home screen, the data(that was previously shown on the gallery) no longer persists and instead defaults to the placeholder text. This very same code works fine locally. Any ideas what's going on here?
Posted Last updated
.
Post not yet marked as solved
1 Replies
1.7k Views
I've updated my test device to use the latest iOS Beta (8 I believe), and I still cannot get it to appear either in the widget library or even on the home screen upon running it from Xcode. But it works totally fine on Simulator. Any ideas what's going on here?
Posted Last updated
.