I tested your extension to download any file types to ASD- Version: 4 on Android 9 and Android 13. it worked as expected.
However, I currently type in the URL manually, as of now URL from google drive / onedrive. Is there a way I can get list of files from google drive and let the users pick a file from the list.
Make a Google Apps Script Web App, and feed it a folder ID
// return list of files in a folder
function doGet(e) {
filesList=[];
var parentFolder = DriveApp.getFolderById(e.parameter.folderID);
var files = parentFolder.getFiles();
while (files.hasNext()) {
var file = files.next();
filesList.push([file.getName(),file.getId()]);
}
var output = JSON.stringify(filesList);
return ContentService.createTextOutput( output );
}
Scenario is user will pick a text file from their google drive that will be downloaded / copied to application specific directory (ASD).
This file in ASD will be used by the app for further processing and publishing output.
You need to modify the user agent of the webviewer to allow google authentication when the user signs in / authenticates the web app. You can do this using the webviewextra extension, or the webviewtools extension, or the CustomWebView extension.
As indicated above, the user must sign in to their google account through the webviewer, and also authenticate / allow the web app to have access to their google drive. You will also need to perform all actions through the webviewer, you won't be able to use the web component.
You can use the webviewstring to exchange "strings" between the app and the webviewer, if needed.
Yes, but there are other methods that are free and relatively easy, using Google Apps Script. The user also wants other users to authenticate their own folders.
GDrive extension does not use webviewer for authentication. Instead Google Auth flow is used.
All the features you need are available in the extension.
Yes, it works for different logins as well and caches the information for subsequent use or until the app cache is cleared.
GD Connector comes with spreadsheet and I felt it would be an overkill for my current simple requirement. Also, I couldn't get the blocks for my current flow requirement quickly due to lack of example.
If you can list the blocks I need for my current requirement, I'll check it out and let you know how it went.