Post

Replies

Boosts

Views

Activity

Unable to get widgetConfigurationIntent from NSUserActivity
I have a simple lock screen widget that when tapped, should open a certain flow in my app. This works fine when the main app is already running, but when tapped while the app is not running, the app launches, but it doesn't open the flow I want it to. When I debug it (see flow below), it seems that the problem come from the widgetConfigurationIntent(of:) function on NSUserActivity. When the app is cold launched, I get the expected NSUserActitivity, but the function above returns nil. That same piece of code returns a valid WidgetConfigurationIntent if the app is already running. Any ideas what might go wrong? There's nothing in the documentation hinting about why this might happen, so I feel a bit lost. BTW, this is how a debug opening from scratch with a lock screen widget: Select "Wait for the executable to be launched" in the scheme editor in Xcode. Make sure the app is not running on device or simulator Start debugging session in Xcode (app is built but not opened) Lock device, tap already installed lock screen widget. App launches and my breakpoint is hit.
0
0
206
Aug ’24
Not able to find the CarPlay capability
In the documentation for adding CarPlay capabilities to an app, it says that I should: Complete the actions in Register an App ID to create an App ID if you don’t already have one. Sign in to your Apple Developer account and select Certificates, Identifiers & Profiles. Select Identifiers in the menu on the left. Select your app’s App ID. Choose the Additional Capabilities tab. Enable the CarPlay capabilities that your app requires. I get stuck on step 5. I simply don't see the "Additional Capabilities" tab (I have "Capabilities" and "App Services") and the CarPlay capability is not showing on the regular "Capabilities" tab. I am Admin on the account. How do I find the CarPlay Capability? Documentation: https://developer.apple.com/documentation/carplay/requesting_carplay_entitlements
2
1
2.4k
Jan ’23