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?
Post
Replies
Boosts
Views
Activity
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) {
		completion(TestConfigurationIntentResponse(code: .inProgress, userActivity: nil))
		backendService.fetchData() { result in
				//format all the data
				completion(TestConfigurationIntentResponse(code: .success, userActivity: nil))
		}
}
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?
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?
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?
While I'm testing my new Widget, each time I launch the simulator, Siri pops up as if I triggered it, before the widget gets installed. I'm not sure why this is happening. Any ideas?