Telerik-Verified-Plugins / ImagePicker

Cordova Plugin For Multiple Image Selection
MIT License
182 stars 331 forks source link

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

Open jgos311 opened 3 years ago

jgos311 commented 3 years ago

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 commented 3 years ago

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 commented 2 years ago

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

husainmusa commented 2 years ago

I'm also facing the same issue.

danielazhao commented 2 years ago

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