大家好,我看到 google plus iphone 应用上传我的图片,但该应用未处于事件状态或在后台完全关闭!我如何在我的应用程序中运行这样的过程
最佳答案
你错了。这不会发生。该应用程序会在您点按它时上传您的照片,并在使用主页按钮使用
退出该应用程序后在后台继续运行 10 分钟- (UIBackgroundTaskIdentifier)beginBackgroundTaskWithExpirationHandler:(void (^)(void))handler
Google 甚至说这就是 their instant upload FAQ 中发生的事情:
Note: Photos and videos will upload while the Google+ application is open and for a brief period of time afterwards.
你想要的,运行代码的能力
"without the app being active or in background it is closed completely!"
在 iOS 上是不可能的
关于iphone - 应用程序未主动运行作业,怎么办?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13545512/