Post

Replies

Boosts

Views

Created

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
3.0k
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.6k
Sep ’22
How to link to Apple Documentation (external framework) within DocC?
Does anyone know how to create a link to a type/symbol within another framework from within your DocC documentation? As an example if I wanted to reference UIKit's UIDevice from within one of my type's overview, property, function, etc. I didn't catch this in any of the videos or documentation but I may have simply missed it.
Replies
0
Boosts
2
Views
1.1k
Activity
May ’22
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.
Replies
2
Boosts
0
Views
3.0k
Activity
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!
Replies
1
Boosts
5
Views
1.6k
Activity
Sep ’22
WWDC24 Labs - Webex requiring meeting password
I have a lab, scheduled right now actually, that Webex is asking me for a password. I emailed wwdc @ apple.com hoping to hear back but it just generated a Case ID for me. I was curious, is anyone else can't join their labs because Webex is prompting for a meeting password?
Replies
2
Boosts
0
Views
719
Activity
Jun ’24