iOS-后台上传照片 [英] iOS - Background uploading of photos
问题描述
我想创建一个应用程序,它将相机胶卷中的新照片自动上传到我的网络服务.就像新的Flickr应用程序的自动上传功能一样.目前,我正在研究如何正确设置它.
I want to create an app which will automatically upload new photos in the camera roll to my webservice. Just like the auto-upload functionality of the new Flickr app. Currently i'm investigating how to set this up properly.
iOs 7的新后台功能可以使这种情况发生.但是,例如可以从后台提取启动后台传输服务吗?还是如果应用程序没有定期打开,则提取功能会被禁用吗?在这种情况下,Flickr如何做到这一点?
The new background functions of iOs 7 can make this happen i guess. But is it for example possible to initiate a Background Transfer Service from a Background Fetch? Or are the fetches disabled if the app isn't opened regularly? In that case, how does Flickr do this?
推荐答案
我也很好奇flickr是如何做到的.回答您的问题
I am also curious how flickr does that. to answer your question
- 例如,是否有可能从后台提取启动后台传输服务".是的!
- 如果未定期打开应用程序,则提取功能被禁用".我不知道调度程序实际上是如何工作的,但是我遇到的所有人都说过,我们不应该假设操作系统将保证每天进行一次提取.实际上,从日志中可以看到flickr每小时至少获取1次.
这篇关于iOS-后台上传照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!