WWDC20

Engage with the WWDC20 community and connect with Apple engineers during the conference.

Posts under WWDC20 tag

710 results found
Post marked as unsolved
210 Views

AVPictureInPictureController.isPictureInPictureSupported() is false on iOS 14

I'm using AVPictureInPictureController.isPictureInPictureSupported() to detect PiP feature is supported on the device. It's working on iPadOS 13 and 14. As we know that, iOS 14 is supporting PiP on iPhone. I'm using the same code but it returns false. And I try AVPictureInPictureController(playerLayer: playerLayer).isPictureInPicturePossible, it returns nil. I tested it on iOS 14 beta 1 and beta 2, iPhone X on simulator, it still the same. I also see that the PiP button is also not shown on Safari HTML5 video playback. How to make it work on iOS 14? Or how to enable for it?
Asked
Last updated .
Post marked as unsolved
18 Views

WidgetKit - custom dynamical intent - defaults?

I followed this guide https://developer.apple.com/documentation/widgetkit/making-a-configurable-widget to set up custom dynamical intents. That works fine, but: how can I set a default for an intent which is used when the user adds a widget to the home screen? In such a case the user did not select an intent yet, and in my specific situation, parts of the widget are empty as they rely on the intent. That means that I need to find a way to specify a default for each custom dynamical intent, which are applied to the widget right when added to the home screen. Thanks for any help. :o)
Asked
by totalidea.
Last updated .
Post marked as solved
522 Views

IntentTimelineProvider does not appear to be used

I am getting the following error message after making updates for intents: CharacterDetailExtension[44128:2330561] [widget] No intent in timeline(for:with:completion:) I placed breakpoints in both functions that are part of the IntentTimelineProvider protocol: snapshot and timeline. From what I can tell, neither of these functions is getting executed. The breakpoints are never touched. And the icon on my screen is white. I am using the simulator as shown in the video, and so that may be the issue. I'll put the beta ios14 on a test device later. But am I missing something?
Asked
Last updated .
Post marked as unsolved
170 Views

Can't debug Failed Shortcut Intent Launch.

I've been trying to use the console to debug a problem with my SiriKit Intent which I added to launch my app from short cuts. The Log messages are as follows: error 21:39:20.087846-0400 intents_helper +[INUIImageSizeProvider downscaledPNGImageForImage:size:error:] Non-fatal error: Error Domain=IntentsErrorDomain Code=6009 "Scaled size is larger than image size" UserInfo={NSDebugDescription=Scaled size is larger than image size} error 21:39:20.090408-0400 Shortcuts -[INCache cacheableObjectForIdentifier:] Unable to find cacheable object with identifier intents-remote-image-proxy:?proxyIdentifier=82C0975C-D3F9-69E5-6F55-7E4EBEE3F41A.png&amp;storageServiceIdentifier=com.apple.Intents.INImageServiceConnection in cache. error 21:39:20.096812-0400 Shortcuts _INCExtensionManagerFetchMatchingSiriExtensionForIntent_block_invoke_2 Failed to find extension Error Domain=INExtensionMatchingErrorDomain Code=3001 "(null)" UserInfo={ExtensionPointName=com.apple.intents-service} error 21:39:20.100112-0400 Shortcuts -[WFAction runWithInput:userInterface:parameterInputProvider:variableSource:completionHandler:]_block_invoke Action &lt;WFHandleCustomIntentAction: 0x7f81bec560c0, identifier: com.theapapp.wastedtime.StartMeetingIntent, parameters: 2&gt; finished with error {domain: WFIntentExecutorErrorDomain, code: 100}. Error Domain=WFIntentExecutorErrorDomain Code=100 "There was a problem with the app." UserInfo={NSUnderlyingError=0x6000020fecd0 {Error Domain=INExtensionMatchingErrorDomain Code=3001 "(null)" UserInfo={ExtensionPointName=com.apple.intents-service}}, NSLocalizedFailureReason=Could not run Start a meeting, NSLocalizedDescription=There was a problem with the app.} error 21:39:20.134294-0400 intents_helper bundleProxyForPID No bundleProxy for bundleURL=file:///Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/libexec/ error 21:39:20.185873-0400 coreduetd error in setObject {     DKObjUUID = "ABF04557-70CC-4257-915F-834F529DCB8B";     class = INRunWorkflowIntent;     direction = 0;     donatedBySiri = 0;     handlingStatus = 0;     sourceBundleID = "com.apple.shortcuts";     sourceItemID = "FC884509-AE97-4BAB-97C8-B7B8CFFAC879";     type = Workflow;     verb = RunWorkflow; } for keyPath /device/intents/dataDictionary : Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.coreduetd.context was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.coreduetd.context was invalidated.} My App has an intent handler that calls that intent as follows: override func handler(for intent: INIntent) -> Any {         logger.log("\(intent)")         switch intent {         case is StartMeetingIntent:             return StartMeetingIntentHandler()         default:             fatalError("No handler for this intent")         }     }      And my Intent is defined as follows: import Intents import SwiftUI import os class StartMeetingIntentHandler: NSObject, StartMeetingIntentHandling {     let logger=Logger(subsystem: "com.theapapp.wastedtime", category: "Start Meeting Intent")     var people: [INObject]?     func handle(intent: StartMeetingIntent, completion: @escaping (StartMeetingIntentResponse) -> Void) {         if let attendees = intent.people { completion(StartMeetingIntentResponse.success(result: attendees))         } else {             logger.log("failure")         }     }     func resolvePeople(for intent: StartMeetingIntent, with completion: @escaping (StartMeetingPeopleResolutionResult) -> Void) {         let people = Int(truncating: intent.people ?? 0)         if people < 0 { completion(StartMeetingPeopleResolutionResult.unsupported(forReason: StartMeetingPeopleUnsupportedReason.negativeNumbersNotSupported))         } else if people > 1000 { completion(StartMeetingPeopleResolutionResult.unsupported(forReason: StartMeetingPeopleUnsupportedReason.greaterThanMaximumValue))         } else { completion(StartMeetingPeopleResolutionResult.success(with: people))         }     } } In the Build for the extension the Intent is listed under Supported Intents. (as StartMeetingIntent). And the Extension is embedded in my application. I am stumped.. so any pointers on what I should look at next would be greatly appreciated. Thanks!
Asked
Last updated .
Post marked as solved
218 Views

NSLocalNetworkUsageDescription not displayed if provided via InfoPlist.string

According to https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/AboutInformationPropertyListFiles.html property list keys can be put into InfoPlist.strings to be localised. When adding NSLocalNetworkUsageDescription in InfoPlist.string, it will not show on iOS14 with the newly introduce local network permission dialog. Instead only the “default” text is shown. Only when NSLocalNetworkUsageDescription is added to Info.plist it will be shown. However it’s not possible to localise it in Info.plist. We want to prepare our App already and provide localised NSLocalNetworkUsageDescription so that our users have propers information right from the beginning when iOS14 will be available. FB8128316
Asked
by awBSH.
Last updated .
Post marked as unsolved
32 Views

is there a demo app for the "Add configuration and intelligence to your widgets" WWDC session

is there a demo app for the "Add configuration and intelligence to your widgets" WWDC2020 session? Xcode doesn't autogenerate any of the code that the demo says it will and parts of the code show in the video is cut off on the screen so I can't see what the code is. keen to get the app so I can manually copy it in. also the written instructions at https://developer.apple.com/documentation/widgetkit/making-a-configurable-widget seem to miss parts out as Xcode doesn't generate the code that the instructions say it will. a demo app for that will also be helpful
Asked
by ngb.
Last updated .
Post marked as unsolved
6 Views

Complication is not available on your apple watch

I've implemented the steps in the WWDC 2020 Video "Meet Watch Face Sharing" and have managed to add into my app the ability to press a button to add a watch face. This then launches the Apple Watch app showing my complications, but when I then press add, it says Complication not available on your Apple Watch. I have a Series 5 paired so all faces should be available, I've even implemented a fallback face but that hasn't helped. In the end all it does is add a blank face to the watch. Any suggestions?
Asked
Last updated .
Post marked as solved
34 Views

Trying to download the Apple Add Watch Face design resources button

https://developer.apple.com/design/resources/ When I access the above link and scroll down to Add Apple Watch Face and select download, I get redirected to an odd AppleConnect page with some reference to box.com Other resources seem to work fine, am I doing something wrong? I've tried this on Safari and Chrome and signed into and out of my Apple Developer Account
Asked
Last updated .
Post marked as unsolved
93 Views

SKPayment.applicationUsername is null

when SKPaymentTransactionStatePurchased get SKPaymentTransaction value :transaction.payment.applicationUsername is null base: Xcode Version 12.0 beta (12A6159) iOS 14.0 (18A5301v) print: (lldb) p transaction.payment.applicationUsername (NSString *) $1 = nil Will the official version of iOS 14 always be like this? please~
Asked
by iEfun.
Last updated .
Post marked as solved
131 Views

Why is SwiftUI transform a list to a grouped list with navigationBarItems ?

Hi there, I'm learning SwiftUI now it seems interesting (it was before, but more this year ^^). I try to understand why as soon as I add navigationBarItems into my NavigationView, SwiftUI transform my list into a "grouped cell". Also, I follow the code shown in Introduction to SwiftUI session this Tuesday and it seems that toolbar is really a toolbar instead of putting everything on navigation bar like it shown. Is anyone get the same result ?
Asked
Last updated .
Post marked as solved
182 Views

iOS 14 Universal Links timeout error with Apple CDN

Our app is using 2 domains of Universal Links. One for our main domain, the other is provided by Adjust. iOS 12, iOS 13: Both domains work correctly. This means apple-app-site-association files are valid. iOS 14 beta 5: Adjust one is working, but main domain's Universal Links is not working. This issue has been persisting for a month. Device: iPhone XS Max, iOS 14 beta 5 SDK: iOS 14 beta 5 apple-app-site-association { &#9;"applinks": { &#9;&#9;"apps": [], &#9;&#9;"details": [ &#9;&#9;&#9;{ &#9;&#9;&#9;&#9;"appID": "XXXXXXXXX1.com.example.APP", &#9;&#9;&#9;&#9;"paths": ["NOT /aaa/", "*"] &#9;&#9;&#9;},{ &#9;&#9;&#9;&#9;"appID": "XXXXXXXXX2.com.example.APP.enterprise.production", &#9;&#9;&#9;&#9;"paths": ["NOT /aaa/", "*"] &#9;&#9;&#9;},{ &#9;&#9;&#9;&#9;"appID": "XXXXXXXXX2.com.example.APP.enterprise.staging", &#9;&#9;&#9;&#9;"paths": ["NOT /aaa/", "*"] &#9;&#9;&#9;} &#9;&#9;] &#9;} } We have not been updated this file for over a year, and no plan to change any time soon. sysdiagnose (iOS 14 beta 5) Service:&#9;&#9;&#9;&#9;&#9;&#9;&#9;applinks App ID:&#9;&#9;&#9;&#9;&#9;&#9;&#9; XXXXXXXXXX.com.example.APP App Version:&#9;&#9;&#9;&#9;&#9;4.0 App PI:&#9;&#9;&#9;&#9;&#9;&#9;&#9; <LSPersistentIdentifier 0x104e305b0> { v = 0, t = 0x8, u = 0xaf4, db = A16B541E-0D61-4813-A711-FCF89CF22411, {length = 8, bytes = 0xf40a000000000000} } Domain:&#9;&#9;&#9;&#9;&#9;&#9;&#9; app.example.com User Approval:&#9;&#9;&#9;&#9;unspecified Site/Fmwk Approval:&#9; unspecified Flags:&#9;&#9;&#9;&#9;&#9;&#9;&#9; Last Checked:&#9;&#9;&#9;&#9; 2020-08-25 04:08:09 +0000 Next Check:&#9;&#9;&#9;&#9;&#9; 2020-08-25 07:49:53 +0000 Error:&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;Error Domain=SWCErrorDomain Code=7 "SWCERR00301 Timeout -- {"cause":"context deadline exceeded (Client.Timeout exceeded while awaiting headers)"}" UserInfo={Line=274, Function=-[SWCDownloader URLSession:dataTask:didReceiveResponse:completionHandler:], NSDebugDescription=SWCERR00301 Timeout -- {"cause":"context deadline exceeded (Client.Timeout exceeded while awaiting headers)"}, UnderlyingError=Error Domain=HTTP Code=404 "(null)" UserInfo={Line=274, Function=-[SWCDownloader URLSession:dataTask:didReceiveResponse:completionHandler:]}} Retries:&#9;&#9;&#9;&#9;&#9;&#9;&#9;2 Service:&#9;&#9;&#9;&#9;&#9;&#9;&#9;applinks App ID:&#9;&#9;&#9;&#9;&#9;&#9;&#9; XXXXXXXXXX.com.example.APP App Version:&#9;&#9;&#9;&#9;&#9;4.0 App PI:&#9;&#9;&#9;&#9;&#9;&#9;&#9; <LSPersistentIdentifier 0x104e305b0> { v = 0, t = 0x8, u = 0xaf4, db = A16B541E-0D61-4813-A711-FCF89CF22411, {length = 8, bytes = 0xf40a000000000000} } Domain:&#9;&#9;&#9;&#9;&#9;&#9;&#9; xxxx.adj.st Patterns:&#9;&#9;&#9;&#9;&#9;&#9; {"/":"/*"} User Approval:&#9;&#9;&#9;&#9;unspecified Site/Fmwk Approval:&#9; approved Flags:&#9;&#9;&#9;&#9;&#9;&#9;&#9; Last Checked:&#9;&#9;&#9;&#9; 2020-08-25 04:08:09 +0000 Next Check:&#9;&#9;&#9;&#9;&#9; 2020-08-30 03:57:44 +0000 Our server is fast enough, probably located somewhere in Japan. Could you suggest me if I'm missing something, or Apple CDN has any issue crawling aasa files?
Asked
by Shin5.
Last updated .