简体   繁体   English

即使应用程序在后台,即使设备解锁屏幕,多任务应用程序也可以收到通知吗?

[英]Can a multitasking app receive a notification when the device unlocks the screen even if the app is in the background?

My app needs to perform a calculation every time the device unlocks. 我的应用程序需要在每次设备解锁时执行计算。 It's an app which the user launches intentionally and then enters background, similar like a pasteboard manager. 这是一个用户有意启动然后进入后台的应用程序,类似于粘贴板管理器。

How can it receive a notification when the device unlocks while the app is in the background? 当应用程序处于后台时,如何在设备解锁时收到通知? Is this possible? 这可能吗? The calculation is not heavy. 计算不重。 It just reads and writes a value from/to NSUserDefaults. 它只是从/向NSUserDefaults读取和写入值。

使用当前的SDK和公共API,即使您的应用程序在后台,也无法判断用户何时解锁屏幕...

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在App推出时添加启动画面(即使是多任务处理)? - Add Splash-screen for when App Launches (Even From Multitasking)? 即使应用未运行(即使不是在后台),我的设备上是否也收到推送通知? - Are push notification received on my device even if the app is not running (not even in background) ? (iOS MPMusicPlayerNotification)如何在应用程序处于后台时接收通知 - (iOS MPMusicPlayerNotification) how to receive notification when app is in the background iOS:通话在后台运行时确实收到了远程通知委托 - IOS:call did receive remote notification delegate when app is in background 当app在后台时,如何对接收推送通知执行操作? - how to perform action on receive push notification when app is in background? 当应用程序在后台且设备被锁定时处理推送通知 - Handling push notification when app is in background and device is locked 当应用程序在后台时推送通知 - Push notification when app in background 重新安装iPhone应用程序后,为什么可以收到旧应用程序的推送通知? - why I can receive the old app's push notification when the iphone app reinstall? 后台iOS应用程序是否收到显示器将要睡眠的通知? - Does a background iOS app receive notification that the display is going to sleep? 如何在Swift 3中为iPhone创建重复的倒数计时器应用程序,即使在后台,它也每隔'x'分钟触发一次通知 - How to make a repeating countdown timer app for an iphone in swift 3 that fires a notification every 'x' minutes even when in the background
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM