<@U025FAKGGJY> hi! I saw in several posts that you...
# multiplatform
p
@Stefan Oltmann hi! I saw in several posts that you've been implementing a Google Drive client (a KMP solution, I assume), and fighting with quite a few issues. I'm wondering if your code is available somewhere publicly? I'm thinking about using Drive for my app that should run primarily on Wasm/JS, so I cannot use any JVM-based client
s
Yes, I implemented a Google Drive client based on Ktor for Ashampoo Photo Organizer. That part is not open source, but doesn’t really contain something surprising. I think I can share snippets if you need to see something specific (like the upload code).
I fear that my efforts for Google Drive were wasted, because they don’t allow me to use the Drive API (restricted). I really don’t understand that, because Pixfolio does the same thing and got that permission. They told me I’m supposed to use the Picker API, but that would be a bad UX for my use case. You don’t expect to add single files every time to a photo organizer. And no, I don’t have a solution how to use picker API from Multiplatform, because they only seem to provide some JavaScript client code here… really strange.
We will try a second attempt to get Google Drive API permissions and if that fails three weeks of implementation and testing for the Google Drive connection will be wasted. 🙄
I wish every service would just use WebDAV, so you spent only time writing a really good WebDAV client once and be done with it. 👀 Maybe we can open source the WebDAV implementation one day. I’ll suggest that.
p
Thanks for the elaborate answer! I'm surprised that the API is restricted. Several years ago it wasn't... Perhaps the load was too big, even for Google? And now they arbitrarily deny access to keep the load under control. It's a show-stopper for my idea for Drive integration
s
I knew beforehand that the API for accessing all of the users files is restricted and needs an audit, but given that Pixfolio and others are allowed to, I assumed I will get that, too. But I was wrong. 🙄 What I can do is either use the Picker API somehow (no idea how 🤷‍♂️ ) to add files on a per-file basis or just see files that were uploaded through my photo organizer app (which doesn’t have a upload feature yet).
IMG_0710.jpg
I wrote multiple mails explaining why I need full access for the intended experience. I even made the demo video they wanted. But eventually they declined.
I hope my colleagues can convince them in a second attempt or I will need to tell my users that the Google Drive feature wished by 80+ users and announced for January (yes, last month; the audit takes many weeks!) won’t come. 😒
I can see already new 1-star-ratings… „promised Google Drive, but did not deliver“
For OneDrive there was no approval process at all. And Dropbox took just two hours for the audit. They look through the app in production (limited to I believe 5k users) and gave their go almost immediately. And Google? They really take their time…
Ok, I could go on and rant the whole day, but I try to calm down again 😅
p
Sorry to hear that... Emotions are normal here. Maybe communicate this situation somehow to the users, even in the UI, so that they push on Google? But then it may create bad PR for your company 🤔 interesting case
🙏 1