简体   繁体   English

当位置发生变化且我的应用程序处于后台时,我可以获得本地通知吗?

[英]Can I get a local notification when location changes and my app is in background?

我是iphone应用程序的新手,我想知道如何在位置更改时获得本地通知,并且应用程序在后台运行。

Yes, this is possible, although only on the newest hardware (iPhone 4 at this time). 是的,这是可能的,虽然只在最新的硬件上(目前是iPhone 4)。 Check the documentation for significant location change tracking and region monitoring. 查看文档以了解重要的位置变更跟踪和区域监控。 The Location Awareness Programming Guide is a great start. 位置感知编程指南是一个很好的开始。

暂无
暂无

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

相关问题 进入后台模式时,如何在应用中更新位置管理器和计时器? - How can i update location manager and a timer in my app when it goes to background mode? 如果当 iOS 应用程序在后台时 NSTimer 不起作用,我怎样才能让我的应用程序定期唤醒? - If NSTimer does not work when an iOS app is in the background, how can I get my app to wake up periodically? 如何在我的应用未运行时处理推送通知 - how can I handle push notification when my app is not running 当我的应用设置为不在后台运行时,是否可以在URL方案中获取参数? - Can I possibly get the parameter in URL Scheme when my app set to not run in background? 如何暂时禁用我的iPhone应用程序安排的所有本地通知? - How can I temporarily disable all local notification scheduled by my iPhone app? 我可以从后台取消iOS本地通知吗? - Can I cancel iOS local notification from the background? 如何知道应用程序在后台时是否触发了本地通知? - How can I tell if a local notification was fired while the application was in the background? 如何解除我的应用在后台时出现的UILocalNotifications? - How can I dismiss UILocalNotifications that appear when my app is in the background? 即使我要求在后台更新位置,为什么我的iOS应用程序会被杀死? - Why does my iOS app get killed even though I ask for location updates in the background? 当我的应用程序处于后台时,仅当我触摸顶部通知横幅并且在我单击应用程序图标时不工作时才会处理推送通知 - When my app is in background, push notifications are handled only if I touch the top notification banner and not working while I click app icon
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM