i'm afraid it's not (it's widget extension). and it not happen to everyone. i have tested it on some devices and it works fine.
it comes from some users feedback. i have no idea how to reproduce it.
Post
Replies
Boosts
Views
Activity
We are unable to reproduce the related issues, and all information currently comes from user feedback. Users typically do not use tools like Console.app to assist in troubleshooting. There are others in the thread experiencing similar issues, so I believe this is not an isolated case. Please keep an eye on these related problems. I have submitted feedback from my device, but have not encountered the issue myself.
FB15244934
"ControlWidgetTemplate is a new feature introduced in iOS 18, and my task mainly involves adding a Control Widget. Initially, I based my work on ControlWidgetButton, but I kept getting the error: 'Reference to generic type 'ControlWidgetButton' requires arguments in <...>'. ControlWidgetButton is a generic class, and despite trying for a long time, the error persists. 😌"
face the same problem, any solution?
😭
Purpose of the LA (Live Activities): The app is a music type, and when switching music, the content of the Dynamic Island is refreshed (based on push notifications). The issue does not occur during the update stage, but rather when the app is in the foreground and the Live Activity is started, which causes an anomaly.
Please see comment below, thanks
i add more detail log.
I suspect the issue lies with AudioPlaybackIntent. I tried switching to AppIntent, but in iOS 18, AppIntent cannot route to the App when it's in the background. I've reported this issue but haven't received a response: https://developer.apple.com/forums/thread/758784.
Here's a more concise translation:
I've added the intent to both the Extension and the App. When debugging, I set a breakpoint in the App's perform method, and there is a significant delay before this breakpoint is hit, not in the playback logic itself.
If I enable openAppWhenRun in the intent, the launch speed improves significantly.
The launch time with the intent is around 4-5 seconds, but a direct app launch is much faster. What's the difference between these scenarios?
below iOS17, how can i present a template?i try to use CPAlertTemplate, but it can only show one button. how can i present a alert witn multiple action, just like apple music.
😭😭😭
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Unsupported object <CPActionSheetTemplate: 0x28036c750> <identifier: CFE56540-A3AE-45CB-ACDF-E05C1CA003FC, userInfo: (null), tabTitle: (null), tabImage: (null), showsTabBadge: 0> passed to presentTemplate:animated:completion:. Allowed classes: {(
CPListTemplate,
CPNowPlayingTemplate,
CPTabBarTemplate,
CPAlertTemplate,
CPVoiceControlTemplate,
CPGridTemplate
)}'