【问题标题】:Clarification about ios and android push and ionic关于 ios 和 android push 和 ionic 的说明
【发布时间】:2016-04-25 12:38:34
【问题描述】:

这听起来可能很愚蠢,但是在我阅读了很多关于这个主题的内容之后,我仍然对推送有点困惑。

对我来说有两种推动:

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)

在测试并阅读了 ionic push 的文档之后

http://docs.ionic.io/docs/push-overview

我仍然不确定 ionic push 是提供 #1 还是 #2。

他们对 APNs 说了很多(我知道这与 #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."

嗯?那么离子推送是关于推送到您的活动应用程序的吗?空闲的时候不行吗?

【问题讨论】:

    标签: android ios ionic-framework push


    【解决方案1】:

    qucik 入门指南也有这部分内容:

    1. 告诉您的应用使用有限的推送

    有限推送不是原生推送通知,而是用于 针对我们的 API 进行测试。它们可以在浏览器或模拟器中工作,但是 当您的应用程序最小化时不会到达,并且令牌不会持续 超过2小时。

    要配置您的应用以使用全功能推送通知,请按照 完整设置指南。

    所以这设置了他们称之为“有限推送”的东西,它只适用于打开的应用程序。要设置传统推送,您需要关注Full Setup guide

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-03-24
      • 2017-06-18
      • 1970-01-01
      • 2017-02-20
      • 2016-03-24
      • 2019-10-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多