Questions tagged [widgetliveactivity]
21 questions
3
votes
1 answer
Issue: Live Activity is showing old scores after 8 hours in iOS 16
Can anyone help why the old score is showing in live activity after 8 hours?
I have added the live activity on Monday, 24 April 9:50 PM. It's working fine to update data properly via notification. But, I see old data in next morning. Old score…

Chandresh Kachariya
- 667
- 2
- 13
- 31
1
vote
0 answers
Live Activity stale date is not accurate
I have a live activity that has a countdown timer. The timer can be minutes long. If my app is suspended the countdown timer reaches zero and then starts to count up. I have set the stale date of the ActivityContent to be the same date as the…

datinc
- 3,404
- 3
- 24
- 33
1
vote
0 answers
How can I cast an error thrown when trying to start a Live Activity as an ActivityAuthorizationError?
I have implemented Live Activity in my app but have encountered occasional errors when a user attempts to start a Live Activity. According to Apple's documentation, the error thrown should be an ActivityAuthorizationError but this has not been my…

Craig Swanson
- 85
- 5
1
vote
0 answers
In some cases Live Activity "get frozen" and no updates
In the latest application update we’ve provided users with ability to receive live updates for Football matches using Live Activities. Our application supports up to 5 simultaneous activities (one per match) and all the updates can be provided…

Kostokord
- 11
- 1
1
vote
1 answer
SwiftUI cannot show SpriteView in live activities
I am trying to show a sprite view in an app. I already have it showing as a view on the main app and it works perfectly fine. The problem comes when I try and add it as a view using
var characterView: some View {
SpriteView(scene:…

Wamy-Dev
- 59
- 7
1
vote
1 answer
Live Activity Push Token Updates getting Called Twice
I'm trying to get push tokens for Live Activities but I am getting the same token twice, Why is that?
Is there any other way to get the token just once, so I can hit the API to save the token.
Here's the code:
Task {
for await data in…

forceunwrapped
- 11
- 2
1
vote
1 answer
iOS Live Activity timer with automatic update
i need to create timer-like with live activities. I noticed that system clock app can start live activity when timer is started. In addition, value inside change every second.
In official Apple documentation only ways to update live activities are…

Dario Raffa
- 27
- 3
0
votes
0 answers
Live Activity set progress view with custom progress style
How to implement custom progress view with moving car,
I'm implementing live activity in which I'm stuck in progress view where the default linear which is working well
ProgressView(
timerInterval:…

Himanshu Gajera
- 1
- 1
0
votes
1 answer
SwiftUI Pinning List Elements as Live Activity
I currently have an iPhone application that renders a list view full of timers. The user is able to swipe on any row and "track" that timer. Tracking it initiates a live activity containing details for the timer to display. This all works…

finiteloop
- 4,444
- 8
- 41
- 64
0
votes
0 answers
Live activity shows -- instead of seconds in SwiftUI
Using Text (timerInterval: context.state.deliveryTimer, countsDown: true), it shows -- instead of seconds (1:30:--) when the iphone is locked, but its working just fine and countdown every second when the iphone is unlocked…

Mhnd the basha
- 1
- 1
0
votes
0 answers
Detect when a live activity is dismissed and notify my server
I have implemented a live activity functionality into my app where a user can initiate multiple ones at the same time. Each time the user initiate a new live activity, I am storing the token in my server in order to use it for updating the live…

Hashim
- 1
- 2
0
votes
1 answer
How to stop Text timer in ios swiftUI widget
I have a live activity and dynamic island widget with text component timer.
Widget is using ActivityConfiguration and how can i stop the timer or close the widget once it reaches specified date?
This is how the timer is…

Adarsh
- 89
- 4
- 14
0
votes
2 answers
Timer counting up in iOS Live Activity
I'm wondering if it's possible to create a simple seconds counter that is counting up in iOS Live Activities that would start from the provided unix timestamp and be relative to current date. For example: '00:01', '00:02', ...
I know how to create a…

raouaoul
- 681
- 2
- 13
- 33
0
votes
0 answers
is it possible to get areActivitiesEnabled value from other targets?
Is it possible to get Live activities current status through areActivitiesEnabled inside other app targets. When I tried to get that value it always returns true.

iroh
- 23
- 5
0
votes
1 answer
Live activity request fails silently on UIKit while it works on SwiftUI
I have an issue with Live Activities. While i can start it with SwiftUI project and same configuration starts displays and updates Live Activity lock screen widget and Dynamic island, on UIKit it fails silently god knows why.
Particular…

Mehmet Karanlık
- 237
- 1
- 10