rpush通知,保存通知但不发送。离子接收消息收到通知

时间:2016-02-19 04:01:22

标签: ios ruby-on-rails-4 push-notification apple-push-notifications phonegap-pushplugin

是否有关于推送通知消息的数据字段的任何文档,我的意思是n.data {}。这是什么意思?

我似乎也有同样的问题

这是我的代码

n = Rpush::Apns::Notification.new
n.app = Rpush::Apns::App.find_by_name("Loanstreet Partners")
n.device_token = @user_auth_token.device_token # 64-character hex string
n.alert = "New Case Submission: " + la.case_code
n.data = { foo: :bar }
n.badge = 1
n.save!

Rpush.push
Rpush.apns_feedback

在我的rpush_notifications表中,我看到已创建的通知但在我的rpush_feedback中它是空的。不知道为什么不发送。任何人都有线索?

我也没有任何错误或任何错误。所以我有点困惑。

但我收到了从Ionic日志收到的通知,但我没有看到任何通知。

0 个答案:

没有答案
相关问题