我正在使用Google Api JS来访问google文件和文件夹,以便将链接上传到数据库,并且在Chrome网络浏览器上非常有效-但是,当我尝试在Android上使用Chrome打开文件时,无法深入资料夹。单击它们会以蓝色突出显示该文件夹,双击将其放大,长按则不会执行任何操作。
这是我找不到的有记录的错误,还是我缺少设置,或者...好吧...这是怎么回事?
更多详细信息
设备:Samsung S5(在另一个具有相同问题的android系统上测试)
操作系统:Android 6.0.1
浏览器:Chrome 69.0.3497.100
Google API代码:https://apis.google.com/js/api.js
其他JS:jquery,jquery-ui,ckeditor,icheck,plupload.full,datetime-moment.js
Google Picker代码段
function createPicker() {
if (pickerApiLoaded && oauthToken) {
var view = new google.picker.DocsView(google.picker.ViewId.DOCS).setMimeTypes("application/vnd.google-apps.document,application/vnd.google-apps.spreadsheet,application/vnd.google-apps.presentation,application/vnd.google-apps.photo,image/jpeg,image/png,image/svg+xml,application/pdf").
setIncludeFolders(true).
setLabel("My Drive").
setOwnedByMe(true);
this.picker = new google.picker.PickerBuilder().addViewGroup(
new google.picker.ViewGroup(google.picker.ViewId.DOCS).
addView(google.picker.ViewId.DOCUMENTS).
addView(google.picker.ViewId.SPREADSHEETS).
addView(google.picker.ViewId.PRESENTATIONS).
addView(google.picker.ViewId.PDFS)).
addView(view).
setInitialView(view).
setOAuthToken(oauthToken).
setCallback(pickerCallback).
setTitle("Select document to be attached").
hideTitleBar().
build();
picker.setVisible(true);
}
}