如何在不编写自己的应用程序的情况下向 iOS 发送推送通知?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12942668/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 20:48:11  来源:igfitidea点击:

How can I send push notifications to iOS without writing my own application?

iospush-notificationapple-push-notifications

提问by jcollie

I would like to send push notifications to iOS-based devices, but I don't want to write my own app. From what I've gathered so far, to send a push notification using the Apple Push Notification Service I need to use the SSL certificates that were used to sign an application.

我想向基于 iOS 的设备发送推送通知,但我不想编写自己的应用程序。从我目前收集到的信息来看,要使用 Apple 推送通知服务发送推送通知,我需要使用用于签署应用程序的 SSL 证书。

Basically, what I'm looking for is the iOS equivalent of Notify My Android, an app that you install on your Android device that has a web service with a simple HTTP APIfor sending notifications.

基本上,我正在寻找的是 iOS 中的Notify My Android,这是一个安装在 Android 设备上的应用程序,该应用程序具有一个带有简单HTTP API的网络服务,用于发送通知。

回答by Totty.js

Use https://pushed.co/

使用https://pushed.co/

SEND PUSH NOTIFICATIONS WITHOUT DEVELOPING YOUR OWN APP Pushed allows you to send real-time push notifications to iOs, Android and Desktop (Chrome, Firefox & Safari) devices.

无需开发自己的应用程序即可发送推送通知 Pushed 允许您向 iO、Android 和桌面(Chrome、Firefox 和 Safari)设备发送实时推送通知。

(Just found it and also found your question.)

(刚刚找到它,也找到了你的问题。)

回答by yinkou

This is not possible under iOS. You only can send push notifications to a specific (your own) app.

这在 iOS 下是不可能的。您只能向特定(您自己的)应用程序发送推送通知。

回答by dgund

When you set up your push notifications for the app, Apple is very strict about the usage. You can only send push notifications to that specific app, and only from your developer account and profile.

当您为应用设置推送通知时,Apple 对使用非常严格。您只能向该特定应用发送推送通知,并且只能通过您的开发者帐户和个人资料发送。

There is no way to have a third party program for this because of these restrictions, so no, this is not possible.

由于这些限制,没有办法为此使用第三方程序,所以不,这是不可能的

For more information check out the Apple documentationon Push Notifications.

有关更多信息,请查看有关推送通知的Apple 文档

回答by MIKE

An option can be to have your users install telegram app and have them talk to your bot. The bot can push notifications to individual users and can even listen for commands.

一种选择是让您的用户安装电报应用程序并让他们与您的机器人交谈。机器人可以向单个用户推送通知,甚至可以监听命令。

回答by Josh Wolff

You canwith Python by using the Spontit API here. You can send to Desktop, iOS, and Android devices with 3 lines of code. Very easy to set-up.

您可以通过使用此处的 Spontit API使用 Python 。您可以使用 3 行代码发送到桌面、iOS 和 Android 设备。非常容易设置。

回答by connorlo

did you find any app's that could do what your after? If not, check out EasyAPN on the Mac App Store or website http://www.abdullahselek.com/2013/08/08/easyapn/.

你有没有找到任何可以做你所追求的应用程序?如果没有,请在 Mac App Store 或网站http://www.abdullahselek.com/2013/08/08/easyapn/上查看 EasyAPN 。

Its an app where you put in the token and payload and press sent (it will detect your certificates stored in your key chain which you can select from).

它是一个应用程序,您可以在其中放入令牌和有效负载并按下发送(它将检测存储在您可以从中选择的钥匙链中的证书)。

回答by Ed Brannin

You can also do this with PushBullet(which has a web API) or IFTTT(which does not seem to have a public API, but has a bunch of other triggers).

您也可以使用PushBullet(它有一个 Web API)或IFTTT(它似乎没有一个公共 API,但有一堆其他触发器)来做到这一点。

回答by Devy

As @yinkou and @DGund pointed out, none of these push notification platforms (Pusher, Boxcar.io, pushover.net) can work around the Apple Push Notification rule of having a registered app.

正如@yinkou 和@DGund 指出的那样,这些推送通知平台(Pusher、Boxcar.io、pushover.net)都无法绕过 Apple 推送通知规则,即拥有注册应用程序。

So the answer is a DEFINITIVELY NO. YOU CANNOT send iOS push notifications without your own app.

所以答案是否定的。如果没有自己的应用程序,您就无法发送 iOS 推送通知。