苹果推送通知服务

发布于 2024-08-09 10:44:21 字数 87 浏览 5 评论 0原文

我正在 iPhone 上开发一个闹钟应用程序。要设置闹钟,我必须使用 APNS(Apple 推送通知服务)。您能建议我如何执行此操作或一些与此相关的重要教程吗?

I am developing an alarm app in iphone. To set alarm I have to use APNS (Apple Push Notification Service). Can you suggest me how to do this or some important tutorial regarding this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

蒲公英的约定 2024-08-16 10:44:21

从这里开始,获取来自 推送通知服务的权威信息编程指南。您还可以在 Stack Overflow 上搜索,以及Google。如果您可以更详细地解释您到底在寻求什么帮助,我们可以提供更具体的信息。

如果您的计划是让某人在某些网站(或桌面应用程序等)上配置警报,并在警报“响起”时使用推送向设备发送通知,我鼓励您重新考虑这一点。推送是一种不可靠的媒介(与 UDP 含义相同):无法保证何时或是否会传送通知。 这不是您应该依赖于在特定时间发生的事情。它无法让您绕过 iPhone 上后台进程的禁令。

也就是说,你当然可以尝试。我上面链接的编程指南将帮助您入门。网上肯定有很多 APNS 教程。如果您有具体问题,这个网站肯定可以提供帮助。但现在,您实质上是在问“我如何编写我的应用程序?”对于像这样的问答网站来说,范围相当广泛。

Start here for authoritative information from the Push Notification Service Programming Guide. You might also search here on Stack Overflow, and on Google. If you can explain in more detail what, exactly, you're looking for help with, we can help with more specific information.

If your plan is to have someone configure alarms on some web site (or desktop app, or whatever), and the use push to send a notification to the device when the alarm "goes off", I encourage you to reconsider that. Push is an unreliable medium (in the same sense as UDP): no guarantees are made as to when, or whether, the notifications will be delivered. It is not something you should depend on to happen at a particular time. It does not get you around the prohibition on background processes on iPhone.

That said, you can certainly try. The Programming Guide I linked above will get you started. There are definitely many APNS tutorials on the web. And if you have specific questions, this site can certainly help. But right now, you're asking, essentially, "how do I write my app?" That's a pretty broad scope for a Q&A site like this.

数理化全能战士 2024-08-16 10:44:21

我相信您实际上指的是本地通知,而不是 Apple 推送通知服务 (APNS)。使用本地通知,您可以设置计时器,在特定时间后向用户显示警报。使用 APNS,您基本上可以将事件从服务器推送到用户的手机。

我建议您阅读 推送通知服务编程指南

I believe that you actually mean Local Notifications, not Apple Push Notification Service (APNS). Using Local Notifications you can set timers that will show an alert to the user after a specific time. Using APNS you can basically push events from a server to the users handset.

I suggest you read the Push Notification Service Programming Guide.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文