这听起来可能很愚蠢,但是在我读了很多关于这个话题的文章之后,我仍然对推有点困惑。
对我来说,有两种推动:
1 - When your phone is idle and suddenly an "alert" pops up in the phone telling you something has happened with your app
2 - When you are "inside" the app and you get notified about something (maybe a new user joined the chat in a chat application)在测试和阅读了离子推送的文献之后
http://docs.ionic.io/docs/push-overview我仍然不确定离子推送是提供#1还是#2。
他们说了很多关于APN的事情(我理解这与#1有关),但是当我在这里读到快速星号时:
http://docs.ionic.io/docs/push-quick-start然后,它指出:
"Once you have both details, make sure your application is OPEN and then use the following cURL request to send a push. Replace the highlighted text with your own values."哈?所以离子推送是关于向你的主动应用程序发送推送?当它空闲的时候不是吗?
发布于 2016-04-25 13:22:55
qucik启动指南也包含以下内容:
有限的推送不是本机推送通知,而是用于针对我们的API进行测试的。它们将在浏览器或仿真器中工作,但当应用程序最小化时不会到达,令牌不会持续超过2个小时。
若要将应用程序配置为使用功能齐全的推送通知,请按照完整设置指南操作。
因此,这是他们所谓的“有限推送”的设置,它只适用于开放应用程序。为了设置传统的推送,您需要遵循全安装指南
https://stackoverflow.com/questions/36840825
复制相似问题