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
Pieter
(Pieter)
September 1, 2021, 3:40pm
2
Are there other calls that also hang? Or only the GetFolderList?
Hi, i just finished testing
Information , i have delphi 10.4.2 and latest FNC cloud sources 2.6.0.0
Pieter
(Pieter)
September 6, 2021, 12:44pm
9
We are currently investigating this.
Thank you, one more information i do have same behavior on MAC
Pieter
(Pieter)
September 8, 2021, 3:29pm
11
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]
Pieter
(Pieter)
September 9, 2021, 9:10am
13
We'll further investigate this here as soon as possible.
Pieter
(Pieter)
September 9, 2021, 1:18pm
14
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 ?
Pieter
(Pieter)
September 9, 2021, 2:10pm
16
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
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;
Pieter
(Pieter)
September 10, 2021, 7:39am
21
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
Pieter
(Pieter)
September 10, 2021, 7:59am
23
Thanks for the feedback! Fixed. Next version will have this included.