IOS GetfolderList

Hi , i have a firemonkey application wich works fine in Windows and Android now i try it on IOS and i face problem with Google drive getfolderlist which never ends ...
Is there something special to add to IOS configuration ?

N.B. I have tested with FNC CLOUD PACK Demo and same result , it fails in retreiving the folder.

Best regards

Are there other calls that also hang? Or only the GetFolderList?

Hi, i just finished testing

  • GetFolderList never end

  • Create folder, folder is created but command never end

Information , i have delphi 10.4.2 and latest FNC cloud sources 2.6.0.0

Do you have any news ?

We are currently investigating this.

Thank you, one more information i do have same behavior on MAC

Hi,

Both iOS and macOS have added something which stops insecure connections. To solve this, you will need to change the info.plist to allow any connection. Please find more info here:

Hi , i have added the lines in my plist but nothing changes , in fact the call is done to https://www.googleapis.com for Getfolderlist like all the others which succeed

=Executing request [TEST TOKENS] with url: [https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=ya29.a0ARrdaM-ZPqyrnZcbUXPKYX7etYbqwOBnLxWy5p9von2QLlw9NC42ueeL7RXA30Ap0i1trzrrtwAze_nePW_9LsN_8Mbol7uAgAwJiRYGAjWseNVrSkfjz3SgloYVaqMOjw3mBxjWFtaWvuyb_Zs0IBow0HiU2Q]
{
"issued_to": "-uaofcqvei7mmgs84mt0k98frcdqebcuv.apps.googleusercontent.com",
"audience": "
-uaofcqvei7mmgs84mt0k98frcdqebcuv.apps.googleusercontent.com",
"user_id": "105821546677505685397",
"scope": "https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/drive.file",
"expires_in": 2172,
"access_type": "offline"
}
=Result from request [TEST TOKENS] is {
"issued_to": "-uaofcqvei7mmgs84mt0k98frcdqebcuv.apps.googleusercontent.com",
"audience": "
-uaofcqvei7mmgs84mt0k98frcdqebcuv.apps.googleusercontent.com",
"user_id": "105821546677505685397",
"scope": "https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/drive.file",
"expires_in": 2172,
"access_type": "offline"
}

{
"issued_to": "-uaofcqvei7mmgs84mt0k98frcdqebcuv.apps.googleusercontent.com",
"audience": "
-uaofcqvei7mmgs84mt0k98frcdqebcuv.apps.googleusercontent.com",
"user_id": "105821546677505685397",
"scope": "https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/drive.file",
"expires_in": 2172,
"access_type": "offline"
}
=Result from request [TEST TOKENS] is {
"issued_to": "-uaofcqvei7mmgs84mt0k98frcdqebcuv.apps.googleusercontent.com",
"audience": "
-uaofcqvei7mmgs84mt0k98frcdqebcuv.apps.googleusercontent.com",
"user_id": "105821546677505685397",
"scope": "https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/drive.file",
"expires_in": 2172,
"access_type": "offline"
}

=Executing request [GET FOLDER LIST] with url: [https://www.googleapis.com/drive/v3/files/?corpora=user&pageSize=1000&projection=BASIC&fields=kind,nextPageToken,incompleteSearch,files/kind,files/id,files/name,files/mimeType,files/size,files/webViewLink,files/webContentLink,files/modifiedTime,files/createdTime,files/shared,files/parents/*,files/owners/displayName&q='root'%20in%20parents and trashed = false]

We'll further investigate this here as soon as possible.

Hi,

We have investigated this here and applied a fix, the next version of the TMS FNC Cloud Pack will address this. You can contact us directly with a link to this topic if you are interested in an incremental source update.

Hi,
Thanks for your quick reaction , when do you expect to publish this fix ?

We are currently working on a lot of other stuff so it's unclear. Most likely next week, but might be later as well. There is one file changed, so I have sent it via this forum as an incremental source update.

Thanks a lot , it works now !

1 Like

Thanks for confirming!

Hi,
Unfortunately , changes made make IOS GetFolderlist succeed but it doesn't work anymore with Windows ....

SO i found the problem , i couldn't upload files with new version
FMX.TMSFNCCloudGoogleDrive
line 1300

Request.Path := '/upload' + FBasePath + '?uploadType=multipart' + TTMSFNCUtils.URLEncode(BASEFIELDS);

I restored it to
Request.Path := '/upload' + FBasePath + '?uploadType=multipart' + BASEFIELDS;

Hi,

We couldn't see an issue here on Windows, the GetFolderList is executed correctly and returns a valid result, with the latest code changes.

Yes but upload of files failed see latest post

Thanks for the feedback! Fixed. Next version will have this included.