Thank you for the video. Thumbnail shows a player with the media controls to play/pause audio. Is it possible to add a play/pause button to the widget that won’t trigger iOS to open the container app? Spotify somehow managed to do that. Wondering if they use some private apis.
@FloWritesCode
Жыл бұрын
I'm sorry that the thumbnail might be a bit misleading in that way. No, as far as I know it's not possible to run code without opening the host app. They are probably using private APIs or another trick that I'm unaware of.
@simonwalker1064
Жыл бұрын
I have really enjoyed following this tutorial. However I have run into an issue when trying to run the code in my environment (Xcode 14.3) When I try to run the code in the simulator the build is successful but then I get a 'SendProcessControlEvent: to Pid: encountered an error..." dialog. Are you able to help me
@FloWritesCode
Жыл бұрын
Thank you, Simon. That sounds like an issue with Xcode attaching to the simulator. Have you restarted Xcode, switched Simulators and/or tried using a real device to test?
@simonwalker1064
Жыл бұрын
@@FloWritesCode Yes, I tried restarting and also tried a real device with no effect on the issue. I also built a completely new Mac OSX on a spare laptop and did a clean install of Xcode, however it didn't fix the problem and I got the same issue with both the simulator and a real phone. I am running macOS Version 13.4 (Build 22F66) Xcode 14.3.1 (21815) (Build 14E300c). Any other thoughts would be appreciated - I can't find any reports of the issue reaching the internet.
@user-fu6my9vb7k
Жыл бұрын
If my app is in the background and I am calling an API every 5 or 6 seconds, should it refresh the state of my live activity when I update it in the background?
@FloWritesCode
Жыл бұрын
afaik LiveActivities can't be refreshed while the app is in the background. That would have to be done via push notifications.
@harshsoni6237
Жыл бұрын
when my app minimizes, it minimizes to the dynamicIsland, but the compactLeading, trailing and body are not shown; just the black island.
@FloWritesCode
Жыл бұрын
Did you follow everything exactly as in the video or did you skip to a specific part? That might help with finding the issue.
@harshsoni6237
Жыл бұрын
@@FloWritesCode yeah, i did exact same. Could you please provide the code for it.. or some help
@clintondavelaar7313
9 ай бұрын
Make sure you're activity widget is added to YourAppNameBundle
@dineshdas9983
Жыл бұрын
Can we get the file?
@FloWritesCode
Жыл бұрын
This project isn't on Github, but given that it's really not a ton of code it should be rather quick to write yourself - which is also better for learning purposes :D Thanks for watching!
Пікірлер: 21