Unable to open new live activities after opening 5 live activities and clearing them

After opening 5 live activities using live activity push-to-start push notifications, I clear them from lock screen. From this point forward I am unable to open new live activities. Device log shows:

Could not create a new activity from push notification: ActivityKit.ActivityAuthorizationError.targetMaximumExceeded

How can I handle such use case? shouldn't the count of opened live activities be reduced once the user clears the live activities? is this a bug?

It is hard to say what the problem is without knowing more about what exactly is going on with your app and with the device at user level.

You have asked a number of other questions regarding running out of budgets to start, etc., so perhaps what you are seeing is a side effect of whatever you are doing. If you are trying to start 10+ activities, perhaps clearing them isn't helping if new ones are being push to started by your server without you noticing . Also, timing could matter. Have you tried giving it an amount of time for the activity dismissal to be registered, in case that's the issue.

Another thing to consider is the budgets of various actions for Live Activities - running over for a certain budget item may have the system consider the complete live activity budget exhausted.

In any case, as you are examining the device logs, check to see if you are seeing

Unable to open new live activities after opening 5 live activities and clearing them
 
 
Q