ilh*_*han 5 android push-notification google-cloud-messaging
我不想为我的网站构建应用程序.但是,我想向Android设备发送推送通知.这可能吗?
小智 7
The answer to the question is simply NO, you need to register an app to google C2DM server, to be able to send push notification to this device.
这取决于您的要求。您可以使用第三方服务,例如 Pushed ( https://pushed.co/ ) 或 Spontit ( https://spontit.com、https://api.spontit.com )。
或者,您可以将该网站设置为手机上的 Chrome 应用,然后您就可以通过 Chrome 发送通知。
https://developers.google.com/cloud-messaging/chrome/client https://developers.google.com/web/updates/2015/03/push-notifications-on-the-open-web?hl=en
在这两种情况下,您都需要建议用户在手机上安装该应用程序以订阅通知。
当我问这个问题时,这是不可能的。但后来出现了网络通知。您可以从网络浏览器接收网络通知。https://developer.mozilla.org/en-US/docs/Web/API/notification
| 归档时间: |
|
| 查看次数: |
6446 次 |
| 最近记录: |