Search in not reliable in Files or apps using UIDocumentBrowserViewController with Google Drive

Originator:douglashill
Number:rdar://47661078 Date Originated:30-Jan-2019 10:22 AM
Status:Open Resolved:
Product:iOS + SDK Product Version:12.1.1
Classification:UI/Usability Reproducible:Sometimes
 
Summary:
File search in the Files app or apps using UIDocumentBrowserViewController does not reliably find documents stored in Google Drive. I suspect this may be a bug on the integration on Google’s side,  but filing this Radar anyway just in case. And you’re in a better position to follow up with Google about this than we are.

I’m on the team at PSPDFKit making PDF Viewer, which uses UIDocumentBrowserViewController. (https://itunes.apple.com/app/id1120099014?mt=8)

I wish everyone would use iCloud Drive because it’s more reliable, but the reality is that Google Drive is quite popular so it’s desirable for Apple to have this working well in the Files app and apps using UIDocumentBrowserViewController.

Steps to Reproduce:
One case where this seems to happen reliably is newly added files but it is not the only situation where files don’t show in search.

1. Open the Files app on iPad
2. Drag a file from local files into Google Drive in the Files app
3. Search some text from the name of that dragged file using the search field at the top of the files list

You can see something similar in our PDF Viewer app when creating a new PDF in Google Drive using the new document button enabled in the UIDocumentBrowserViewController.

Expected Results:
The file in Google Drive should show up in the search results alongside the original in local storage.

Actual Results:
Only the file in local storage shows up.

Version:
12.1.1

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!