如何在 iPhone 应用程序中向服务器发送 http post 请求?

发布于 2024-08-08 08:27:35 字数 62 浏览 3 评论 0原文

如何通过特定的计时器请求从我的本机 iphone 应用程序发送设备令牌,以便在指定时间后推送通知警报到达设备。

how do i send device token from my native iphone app with a specific timer request so that after the specified time push notification alert comes to device.

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

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

发布评论

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

评论(1

茶底世界 2024-08-15 08:27:35

您的问题的标题和正文不完全匹配。

设置推送计时器请求的最简单方法是与提供定时请求的推送服务提供商注册(UrbanAirship 提供,但您可能还想检查 iLime 或 push.io 等其他服务提供商)。

另一种选择是编写一个服务器,您可以在其中对请求进行排队,然后运行 ​​cron 作业将它们推出。显然,这需要更多的工作。要实际发布消息,您可以使用 ASIHTTPRequest 之类的东西。

您可能还想告诉您的用户不要依赖确切的时间。这个过程会涉及很多变量,尤其是当用户使用 WiFi 时。

The title of your question and the text of it don't exactly match.

The easiest way to set up a timer request for push is to sign up with a push service provider that offers timed requests (UrbanAirship does but you may also want to check others like iLime or push.io).

The other option is to write a server where you can queue the requests then run a cron job to push them out. Obviously, that'll take more work. To actually post the message, you could use something like ASIHTTPRequest.

You may also want to tell your users not to rely on exact timing. A lot of variables enter into the process especially if user is on WiFi.

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