Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 14 thumbnail don't appear in gallery when user chooses "Select Photos" permission #245

Open
jgos311 opened this issue Jun 10, 2021 · 4 comments

Comments

@jgos311
Copy link

jgos311 commented Jun 10, 2021

In iOS 14, when users are prompted to give an app permission to access their photos, users have the option to "Select Photos" where the app will only have access to the photos selected by the user, as opposed to the user's entire Photo Library (see first screenshot).

On our app, when we prompt the user to allow access to their photos, and given the user chooses the "Select Photo" option, once the user has selected the photos they want our app to have access to, the thumbnails of the selected photos don't show up (see second screenshot below).

image
image

Following are the errors I see while debugging the issue:
Jun 10 02:22:04 backboardd(CoreBrightness)[63] <Error>: invalid parameters Jun 10 02:22:04 nearbyd[126] <Error>: onHIDEvent HIDServiceClient is nil Jun 10 02:22:04 CAReportingService[197] <Error>: CAReportingSession.mm:309 no backends found, this session won't get sent to the server Jun 10 02:22:04 backboardd(CoreBrightness)[63] <Error>: invalid parameters Jun 10 02:22:04 nearbyd[126] <Error>: onHIDEvent HIDServiceClient is nil Jun 10 02:22:04 securityd(CoreFoundation)[119] <Error>: attempt to set <private> for key in <private> in non-persistent preferences domain CFPrefsPlistSource<> (Domain: securityd, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: Yes) Jun 10 02:22:04 kbd(KeyboardServices)[259] <Error>: -[_KSUserWordsSynchroniser accountDidChange:]_block_invoke Disabling syncing if necessary as no compatible account found Jun 10 02:22:04 tccd[42] <Error>: -[TCCDAccessIdentity initWithMessage:]: self.bundle=0x0, bundle:(null); for: com.apple.sensorkit.dummy-bundle-id Jun 10 02:22:04 itunescloudd[187] <Error>: Received unsupported darwin notification com.apple.tcc.access.changed Jun 10 02:22:04 amsaccountsd[85] <Error>: CKContainer: [F636E922] accountInfo.accountStatus == CKAccountStatusCouldNotDetermine Jun 10 02:22:04 SpringBoard(KeyboardArbiter)[60] <Error>: HW kbd: Failed to set keyboard focus pid: (com.apple.mobileslideshow.photo-picker) scene:(null) Jun 10 02:22:04 (AXRuntime)[4287] <Error>: Unknown client: <myapp> Jun 10 02:22:04 searchpartyd[139] <Error>: iCloud Account not available! Jun 10 02:22:04 cloudpaird[67] <Error>: iCloud Account not available! Jun 10 02:22:04 accountsd(AccountsDaemon)[111] <Error>: "Cannot check access to a private account type: <private>" Jun 10 02:22:04 accountsd(AccountsDaemon)[111] <Error>: "Client (<private>) attempted to access restricted account type: <private>" Jun 10 02:22:04 accountsd(AccountsDaemon)[111] <Error>: Unentitled access by client 'PhotoPicker' (selector: <private>) Jun 10 02:22:04 PhotoPicker(Accounts)[4296] <Error>: "Error returned from daemon: Error Domain=com.apple.accounts Code=7" Jun 10 02:22:04 amsaccountsd[85] <Error>: AMSDHomeKitDataSource [] Failed to fetch the device's homes. HomeKit isn't ready. status = 0 Jun 10 02:22:04 amsaccountsd[85] <Error>: AMSDHomeKitDataSource [] Failed to fetch the device's homes. HomeKit isn't ready. status = 0 Jun 10 02:22:04 amsaccountsd[85] <Error>: AMSDMultiUserController: [] The refresh failed. error = { Error domain=AMSErrorDomain, code=13 } Jun 10 02:22:04 tccd[42] <Error>: -[TCCDAccessIdentity initWithMessage:]: self.bundle=0x0, bundle:(null); for: com.apple.sensorkit.dummy-bundle-id Jun 10 02:22:04 PhotoPicker(DataDeliveryServices)[] <Error>: Error for queryMetaDataSync: 2 Jun 10 02:22:04 PhotoPicker(DataDeliveryServices)[] <Error>: Error for queryMetaDataSync: 2 Jun 10 02:22:04 PhotoPicker(DataDeliveryServices)[] <Error>: Error for queryMetaDataSync: 2 Jun 10 02:22:04 PhotoPicker(DataDeliveryServices)[] <Error>: Error for queryMetaDataSync: 2 Jun 10 02:22:04 PhotoPicker(libCoreFSCache.dylib)[] <Error>: Errors found! Invalidating cache... Jun 10 02:22:04 homed(HomeKitBackingStore)[198] <Error>: [com.apple.homekit.camera.clips] [] Manatee is not currently available; waiting for CKAccountChangedNotification to check again Jun 10 02:22:04 siriactionsd(WorkflowKit)[99] <Error>: -[WFDatabase(Sync) clearTombstonesAndSyncState]_block_invoke Failed to perform batch deletion of non-visible workflows: Error Domain=NSCocoaErrorDomain Code=134060 "A Core Data error occurred." UserInfo={Reason=Delete rule is not supported for batch deletes, Relationship=ShortcutActions.shortcut} Jun 10 02:22:05 PhotoPicker(libCoreFSCache.dylib)[] <Error>: Errors found! Invalidating cache... Jun 10 02:22:05 PhotoPicker(libCoreFSCache.dylib)[] <Error>: Errors found! Invalidating cache... Jun 10 02:22:06 kbd(KeyboardServices)[] <Error>: -[_KSUserWordsSynchroniser accountDidChange:]_block_invoke Disabling syncing if necessary as no compatible account found

Appreciate any help on this.
Thanks in advance.

@harryt2
Copy link

harryt2 commented Jun 30, 2021

Same problem here. It happened to me when I called "getPictures()" and then "Select Photos" and then hit cancel. Every time after that it will open with just a blank image gallery.

@NirmalkumarNeelamegan
Copy link

I'm also facing the same issue. Please give update on this?

@husainmusa
Copy link

I'm also facing the same issue.

@danielazhao
Copy link

I'm facing the same issue on iOS 15 too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants