iPhone 基于位置的推送通知的示例代码?
我在苹果的推送通知编程指南和指南中没有看到一些东西。相关文档。是否有一个像样的示例项目(或写得好的教程)来向我展示如何推送位置通知?
这就是我想做的:
- 启动我的应用程序。
- 按“记住这个地点”按钮。
退出我的应用程序。
[...时间流逝...]
收到通知:“您现在距离出发点已超过一英里。”
[...时间流逝...]
收到通知:“您现在距离起点不到 100 英尺。”
如果 Apple 文档中包含此内容,我们深表歉意;我只是没有看到它。
谢谢!
(Meta:一旦你意识到自己只是盲目的,有没有办法撤回问题?)
There's something I'm not seeing with Apple's push notification programming guide & related documentation. Is there a decent sample project (or well written tutorial) to show me how to do push location notifications?
Here's what I want to do:
- Launch my app.
- Press the "remember this spot" button.
Quit my app.
[... time passes ...]
Get a notification: "You are now more than a mile from where you started."
[... time passes ...]
Get a notification: "You are now within 100' of where you started."
Apologies if this is covered in Apple's docs; I'm just not seeing it.
Thanks!
(Meta: Is there a way to withdraw a question once you realize that you're just being blind?)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
呃。就是这样。
http://developer.apple.com/ iphone/library/documentation/UserExperience/Conceptual/LocationAwarenessPG/CoreLocation/CoreLocation.html
问题是,我正在搜索“位置+推送通知”,但结果很干燥,我想要“位置感知”。
希望这篇文章至少能帮别人省去麻烦。
Duh. And there it is.
http://developer.apple.com/iphone/library/documentation/UserExperience/Conceptual/LocationAwarenessPG/CoreLocation/CoreLocation.html
The problem was, I was searching on "location + push notification" and coming up dry, I wanted "location aware."
Hopefully this entry will at least save someone else the trouble.