README.md in lead_zeppelin-0.1.3 vs README.md in lead_zeppelin-0.1.4
- old
+ new
@@ -26,11 +26,15 @@
Thread.abort_on_exception = true
Instantiate a new client and configure it by adding the block of code to handle error responses, and . Provide client.on\_error _before adding applications_.
client = LeadZeppelin::APNS::Client.new do |c|
- c.on_error do |error_response|
+ c.on_notification_error do |error_response|
puts "Apple sent back an error response: #{error_response.inspect}"
+ end
+
+ c.on_certificate_error do |app|
+ puts "Certificate error failed for #{app}"
end
# You can provide .p12 files too! p12: File.read('./yourapp.p12')
c.add_application :your_app_identifier, pem: File.read('./yourapp.pem')
end
\ No newline at end of file