如何使 iOS 邮件下载大于 1.5MB 的自定义文件类型附件?

发布于 2024-10-07 12:36:39 字数 441 浏览 0 评论 0原文

我已经为我的 iOS 应用程序实现了一个自定义文档处理程序(基于这个问题和答案:如何将文件类型与 iPhone 应用程序关联起来?),一般来说它工作正常。但是,如果我尝试打开大于 1.5MB 的文档类型的邮件附件,我的文档图标不会显示(通用下载箭头会显示),并且“邮件”不会打开该附件,而是响应消息“邮件无法打开”这个附件”。

我可以通过开始转发带有附件的邮件,等待附件下载,然后返回原始邮件来“欺骗”邮件加载附件。一旦实际下载,它就可以在我的应用程序中正常打开。

我的问题是,如何让 Mail 识别出我的文档受支持,以便允许下载附件(例如,就像下载大型 PDF 一样)?

I've implemented a custom document handler for my iOS application (based on this question & answer: How do I associate file types with an iPhone application?) and in general it's working fine. However, if I try to open a mail attachment of my document type that's greater than 1.5MB, my document icon does not display (a generic download arrow does) and Mail will not open the attachment, instead responding with the message "Mail cannot open this attachment".

I can 'trick' Mail into loading the attachment by beginning to forward the message with attachments, waiting for the attachment to download, and then returning to the original message. Once it's been actually downloaded, it opens fine with my app.

My question is, how can I get Mail to recognize that my document is supported, so that it will allow downloading the attachment (like it does for large PDFs, for example)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

羁客 2024-10-14 12:36:39

我不确定这是否可能。我认为这是 Apple CoreOS 框架的一部分。但我可能是错的。

I'm not sure that's even possible. I think that's part of the CoreOS Framework from Apple. I could be wrong though.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文