Getting an error when trying to start Live Activity

Trying to start a Live Activity in my app (I have Supports Live Activity = YES set in my app's Info.plist, and the extension's Info.plist). When I try to do the:

try Activity<MyActivityAttributesStruct>.request {attributes: myAttributes, contentState: myStatus, pushType: nil)

I catch the following error:

Error Domain=com.apple.ActivityKit.ActivityInput Code=1 "(null)" UserInfo={NSUnderlyingError=0x6000003a06f0 {Error Domain=com.apple.ActivityKit.ActivityAuthorization Code=6 "(null)"}}

Anyone else encounter this or have any suggestions?

I'm experiencing this same thing. Have you been able to figure this out at all?

I was able to fix the issue by setting below property in Build Settings

INFOPLIST_KEY_NSSupportsLiveActivities YES

Getting an error when trying to start Live Activity
 
 
Q