In a WKWebview I am loading a page that has a button to allow a user to upload a photo for a profile. Clicking the button prompts the user to select their photo library, camera, or choose a file in the same way safari does.
Choose a file works as expected
Camera or Photo Library fail with a log:
[core] "Error returned from daemon: Error Domain=com.apple.accounts Code=7 "(null)"" 2022-04-20 12:32:29.010947-0400
[PAAccessLogger] Failed to log access with error: access=<PATCCAccess 0x283e88990> accessor:<<PAApplication 0x28137a260 identifierType:auditToken identifier:{pid:810, version:2204}>> identifier:789F7A90-3A0B-4FC3-8E69-8863321CDE2F kind:intervalEnd timestampAdjustment:0 tccService:kTCCServicePhotos, error=Error Domain=PAErrorDomain Code=10 "Possibly incomplete access interval automatically ended by daemon"
I also do not get a request for camera or photo library access like I would expect. I DO have camera and photo library permissions in my info.plist and if they are omitted I get a different and more descriptive failure, prompting me to add the permissions.
Mobile Safari works in all cases
Test device is an iPhone X running ios 15.4.1 App is built in XCode 13