gpt4 book ai didi

javascript - 从 PhoneGap iOS 应用程序将文件上传到 Google Drive

转载 作者:行者123 更新时间:2023-11-28 08:33:49 24 4
gpt4 key购买 nike

在我的 iPhone 应用程序中,我正在生成一个文本文件。我想将该文件上传到 Google 云端硬盘。

该应用程序是在 PhoneGap 中构建的。

有没有相关的 API/插件?

我指的是这个链接: https://developers.google.com/drive/web/quickstart/quickstart-js ,但是当我将其集成到我的应用程序中时,它将重定向到 Safari 进行身份验证。

是否有任何进程会在后台运行以将文件上传到 Google 云端硬盘?

最佳答案

On iOS, query fetches will normally be stopped once the user puts the application into the background. Fetches and callbacks can be continued in the background, up to the operating system time limit, by setting the property shouldFetchInBackground:

service.shouldFetchInBackground = YES;

关于javascript - 从 PhoneGap iOS 应用程序将文件上传到 Google Drive,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21495226/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com