Similar to #4, but for FCM. An example to handle Timeout may look like the following:
class ApplicationNotifier < Fourseam::Base
rescue_from Fourseam::FcmDeliveryError do |error|
if error.response&.headers['Retry-After']
# re-enqueue the job honoring the 'Retry-After' header
else
raise # Make sure to raise any other types of error to re-enqueue the job
end
end
end
Similar to #4, but for FCM. An example to handle
Timeout
may look like the following: