Post

Replies

Boosts

Views

Activity

ActivityKit request with pushType = .token results in undocumented PermissionError
I just upgraded to Ventura beta 5 in the hopes of testing the push path for Live Activities in ActivityKit. I am getting an undocumented error that I can't figure out when I request an activity. I created FB11226441 for this observed defect against beta 5. Error: Error Domain=com.apple.ActivityKit.ActivityInput Code=0 "(null)" UserInfo={NSUnderlyingError=0x600003b14db0 {Error Domain=SessionCore.PermissionsError Code=4 "(null)"}}         do {             let activity = try Activity<PizzaDeliveryAttributes>.request(                 attributes: pizzaDeliveryAttributes,                 contentState: initialContentState,                 pushType: .token             )             print("Requested a pizza activity with id: \(activity.id)")         } catch {             print("Error: \(error)")         } Has anyone overcome this error? I triple read the guide but haven't found anything I missed in my setup. Ensured remote notifications capability is checked Ensured running macOS Ventura beta w/ M1 Mac Ensured Live Activities permission is granted for the app Ensured requested user notification permission Reset the simulator a few times to start fresh against beta 5 I tried this against Xcode 14 beta 5, Ventura beta 5.
2
0
2.4k
Aug ’22
Where is the Crash Detection Entitlement Request form?
I found in a header file of SafetyKit type documentation references to an entitlement to use the framework. Given the framework currently doesn't have documentation with Xcode 14.0 public release in Xcode or online, could someone provide the link so developers can request the entitlement? /**  * SAEmergencyResponseManager    *  * @discussion  * Use SAEmergencyResponseManager to request actions in response to an emergency event.  * Set the delegate to monitor the progress of requested emergency response actions.  * SAEmergencyResponseManager requires user authorization for at least one of the emergency event detections e.g. SACrashDetectionEvent  *  * SAEmergencyResponseManager requires an entitlement from Apple to at least one of the emergency event detections. To apply for the entitlement, see respective detection mechanisms  */ /**  * SACrashDetectionManager  *  * @discussion  * Use SACrashDetectionManager to receive information about Vehicular Crash Detection events.  * Not all phone models support Crash Detection, check for availability before creating an instance of SACrashDetectionManager.  * Set the delegate immediately after creating an instance of SACrashDetectionManager. Creating multiple instances of SACrashDetectionManager is not supported and should be avoided.  *  * SACrashDetectionManager requires an entitlement from Apple. To apply for the entitlement, see Crash Detection Entitlement Request.  */ Thanks in advance!
1
5
1.4k
Sep ’22