iphone - 应用程序未主动运行作业,怎么办?

标签 iphone objective-c ios

大家好,我看到 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/

相关文章:

ios - 如果将 kSecAttrIsPermanent 设置为 NO 会发生什么?

objective-c - 从 NSString 中提取括号之间的值

ios - UIPageViewController 背景在 Objective C iOS 中从不透明

ios - 我们什么时候在 Objective-C 中使用 static __unsafe_unretained?

ios - 从另一个 "getDocument"查询中的 "getDocument"查询中检索数据

android - 如何让您的移动 AIR 应用程序始终在后台运行?

ios - 选择 UICollectionViewCell 时更改标签文本

ios - React Native iOS 应用程序在使用 xcode 9.0 的 iOS 11.3 上崩溃 "EXC_BREAKPOINT (SIGTRAP)"

iphone - Xcode 包含已删除的 .xib 文件!

ios - 如何在 iphone sdk 中检查键数组是否为 Null 或为空?