Packages
pigeon
1.2.4
2.0.1
2.0.0
2.0.0-rc.3
2.0.0-rc.2
2.0.0-rc.1
2.0.0-rc.0
1.6.3
1.6.2
1.6.1
1.6.0
1.5.1
1.5.0
1.4.0
1.3.2
1.3.1
1.3.0
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.1.0-rc.1
1.1.0-rc.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.13.1
0.13.0
0.12.1
0.12.0
0.11.0
0.10.3
0.10.2
0.10.1
0.10.0
0.9.1
0.9.0
0.8.0
0.7.0
0.6.0
0.5.2
0.5.1
0.5.0
0.4.1
0.4.0
0.3.0
0.2.0
0.1.0
iOS (APNS), Android (FCM), and Amazon Android (ADM) push notifications for Elixir.
Current section
57 Versions
Jump to
Current section
57 Versions
Compare versions
4
files changed
+10
additions
-6
deletions
| @@ -1,4 +1,4 @@ | |
| 1 | - Copyright (c) 2015 Codedge LLC |
| 1 | + Copyright (c) 2015-2018 Codedge LLC (https://www.codedge.io/) |
| 2 2 | |
| 3 3 | Permission is hereby granted, free of charge, to any person obtaining a copy |
| 4 4 | of this software and associated documentation files (the "Software"), to deal |
| @@ -51,4 +51,4 @@ | |
| 51 51 | {<<"optional">>,false}, |
| 52 52 | {<<"repository">>,<<"hexpm">>}, |
| 53 53 | {<<"requirement">>,<<"~> 1.5.0">>}]]}. |
| 54 | - {<<"version">>,<<"1.2.3">>}. |
| 54 | + {<<"version">>,<<"1.2.4">>}. |
| @@ -155,11 +155,15 @@ defmodule Pigeon.ADM.Worker do | |
| 155 155 | |
| 156 156 | _ -> |
| 157 157 | fn {reg_id, payload} -> |
| 158 | - {:ok, %HTTPoison.Response{status_code: status, body: body}} = |
| 159 | - HTTPoison.post(adm_uri(reg_id), payload, adm_headers(state)) |
| 160 | - |
| 158 | + case HTTPoison.post(adm_uri(reg_id), payload, adm_headers(state)) do |
| 159 | + {:ok, %HTTPoison.Response{status_code: status, body: body}} -> |
| 161 160 | notification = %{notification | registration_id: reg_id} |
| 162 161 | process_response(status, body, notification, on_response) |
| 162 | + |
| 163 | + {:error, %HTTPoison.Error{reason: :connect_timeout}} -> |
| 164 | + notification = %{notification | response: :timeout} |
| 165 | + process_on_response(on_response, notification) |
| 166 | + end |
| 163 167 | end |
| 164 168 | end |
| @@ -1,7 +1,7 @@ | |
| 1 1 | defmodule Pigeon.Mixfile do |
| 2 2 | use Mix.Project |
| 3 3 | |
| 4 | - @version "1.2.3" |
| 4 | + @version "1.2.4" |
| 5 5 | |
| 6 6 | def project do |
| 7 7 | [ |