Post

Replies

Boosts

Views

Activity

How to prevent ios17 interactive widgets to open the app after an interaction?
I have a widget with a few buttons which call the same AppIntent. If I press the buttons slowly everything works perfectly, but If I press them quickly (I assume, before the re-render from the previous press has finished) the system opens my app instead of calling the AppIntent. Is this a bug? is there a way to prevent this? Thanks.
5
6
2.2k
Sep ’23
How to provide dynamic default values for a Parameter in a WidgetConfigurationIntent?
struct MyIntentConfiguration: WidgetConfigurationIntent { static var title: LocalizedStringResource = "Habit Selector" static var description: IntentDescription = IntentDescription("Select Habits") @Parameter(title: "Select Habits", size: 9) var habits: [HabitEntity] } The previous code correctly allows the user to pick the 9 habits they want to track in the widget. But initially the widget is empty. How can I define default values for the Parameter "habits" taking into account that the values are dynamic?
0
0
646
Jul ’23
Unreliable Network Requests with Interactive Widgets in Production Environment
We've noticed that network requests triggered when a user interacts with our widget are very unreliable. In development, they almost always work, but in production, many of them never reach the server, especially when many requests are performed in a row. The requests are performed using the URLSession.shared singleton instance: let session = URLSession.shared let task = session.dataTask(with: request) { data, response, error in ... } task.resume() Are there any limitations or restrictions on Interactive Widgets in a production environment that might cause this behavior? Is there a different way to implement or configure widgets to ensure network requests are reliably performed? Thank you.
1
0
659
Oct ’23
How to prevent ios17 interactive widgets to open the app after an interaction?
I have a widget with a few buttons which call the same AppIntent. If I press the buttons slowly everything works perfectly, but If I press them quickly (I assume, before the re-render from the previous press has finished) the system opens my app instead of calling the AppIntent. Is this a bug? is there a way to prevent this? Thanks.
Replies
5
Boosts
6
Views
2.2k
Activity
Sep ’23
How to provide dynamic default values for a Parameter in a WidgetConfigurationIntent?
struct MyIntentConfiguration: WidgetConfigurationIntent { static var title: LocalizedStringResource = "Habit Selector" static var description: IntentDescription = IntentDescription("Select Habits") @Parameter(title: "Select Habits", size: 9) var habits: [HabitEntity] } The previous code correctly allows the user to pick the 9 habits they want to track in the widget. But initially the widget is empty. How can I define default values for the Parameter "habits" taking into account that the values are dynamic?
Replies
0
Boosts
0
Views
646
Activity
Jul ’23
Unreliable Network Requests with Interactive Widgets in Production Environment
We've noticed that network requests triggered when a user interacts with our widget are very unreliable. In development, they almost always work, but in production, many of them never reach the server, especially when many requests are performed in a row. The requests are performed using the URLSession.shared singleton instance: let session = URLSession.shared let task = session.dataTask(with: request) { data, response, error in ... } task.resume() Are there any limitations or restrictions on Interactive Widgets in a production environment that might cause this behavior? Is there a different way to implement or configure widgets to ensure network requests are reliably performed? Thank you.
Replies
1
Boosts
0
Views
659
Activity
Oct ’23