Android Google Drive App data folder not listing all childrens

android, google-drive-api

Solution

There is a known issue regarding syncing App Folder content after app uninstallation and reinstallation. For cross device backup, we recommend using requestSync() to ensure App Folder content is synced before attempting to restore.

Problem

I have used the new Google Play services 4.3 to back-up my app data to the "App Folder" from Google Drive. I followed the instructions from this link Storing Application Data. I checked in "Manage Apps" and the file seems to be added. If I try to list the children of the App Folder, they are returned successfully. The issue appears when I install the app on another device (properly synced), or if I uninstall and install the app again on the same device. When I tried to list the children of the App Folder, the count returned is 0. PS: I tried querying with both: ``` Drive.DriveApi.getAppFolder(mGoogleApiClient).listChildren(mGoogleApiClient) ``` and ``` Drive.DriveApi.getAppFolder(mGoogleApiClient).queryChildren(mGoogleApiClient, query) ```

Original source

Related problems