Ios 来自Rails应用程序的Apple推送通知
我正在使用Houston Gem从Rails应用程序发送推送通知。我尝试从API打印响应。它只返回一个整数(120124192等) 从我的Rails应用程序中是否有任何方法可以理解推送通知是否已成功处理Ios 来自Rails应用程序的Apple推送通知,ios,ruby-on-rails,ruby,Ios,Ruby On Rails,Ruby,我正在使用Houston Gem从Rails应用程序发送推送通知。我尝试从API打印响应。它只返回一个整数(120124192等) 从我的Rails应用程序中是否有任何方法可以理解推送通知是否已成功处理 certificate_enterprise = File.read("config/enterprise.pem") connection = Houston::Connection.new("apn://gateway.sandbox.push.apple.com:2195", certif
certificate_enterprise = File.read("config/enterprise.pem")
connection = Houston::Connection.new("apn://gateway.sandbox.push.apple.com:2195", certificate, pass_phrase)
connection.open
connection.write(notification.message)
connection.close
APNS服务不提供关于是否已接收和处理通知的反馈,但是,您可以连接到反馈服务,查看它是否未能发送到您尝试与之通信的任何设备:。是否有任何方法可以让我从正在使用的gem访问feedbak服务?根据GitHub页面,有一种方法:(向下滚动到“反馈”)。