Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pankaj Soni committed Jul 21, 2016
1 parent 9b221ae commit 972f5d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fcm.erl
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ do_push(RegIds, Message, Key, Retry) ->
{error, Reason}
end.

handle_result(GCMResult, RegId) when is_binary(RegId) ->
handle_result(GCMResult, [RegId]);
handle_result(GCMResult, RegIds) ->
{_MulticastId, _SuccessesNumber, _FailuresNumber, _CanonicalIdsNumber, Results} = GCMResult,
lists:map(fun({Result, RegId}) -> {RegId, parse(Result)} end, lists:zip(Results, RegIds)).
Expand Down

0 comments on commit 972f5d6

Please sign in to comment.