anchor.diff:  		end.
   
   
  -
   stop(Host) -> ok.
positive.code: 			ToUser = To#jid.user,
  			ToServer = To#jid.server,
  
  			Body = xml:get_path_s(Packet, [{elem, <<"body">>}, cdata]),
  
  			%% Checking subscription
  			{Subscription, _Groups} = 
  				ejabberd_hooks:run_fold(roster_get_jid_info, ToServer, {none, []}, [ToUser, ToServer, From]),
  			case Subscription of
  				both ->
  					case catch Body of
  						<<>> -> ok; %% There is no body
  						_ ->
  							Result = mnesia:dirty_read(gcm_users, {ToUser, ToServer}),
  							case catch Result of 
  								[] -> ?DEBUG("mod_gcm: No such record found for ~s", [JTo]);
  								[#gcm_users{gcm_key = API_KEY}] ->
  									Args = [{"registration_id", API_KEY}, {"data.message", Body}, {"data.source", JFrom}, {"data.destination", JTo}],
  
negative.code: 
  -export([start/2, stop/1, message/3, iq/3]).
  
  %% http://stackoverflow.com/questions/114196/url-encode-in-erlang
  -spec(url_encode(string()) -> string()).
  
  escape_uri(S) when is_list(S) ->
  