mrDoctorWho / ejabberd_mod_apns

An ejabberd module to send PUSH messages to iOS devices through APNS
MIT License
33 stars 19 forks source link

erlang timestamp #15

Closed BesatZardosht closed 7 years ago

BesatZardosht commented 7 years ago

I get this error when I sent register iq:

2017-01-27 11:52:44.707 [error] <0.523.0>@gen_iq_handler:process_iq:129 {undef,[{erlang,timestamp,[],[]},{mod_apns,iq,3,[{file,"mod_apns.erl"},{line,122}]},{gen_iq_handler,process_iq,6,[{file,"src/gen_iq_handler.erl"},{line,128}]},{ejabberd_local,route,3,[{file,"src/ejabberd_local.erl"},{line,112}]},{ejabberd_router,route,3,[{file,"src/ejabberd_router.erl"},{line,77}]},{ejabberd_c2s,check_privacy_route,5,[{file,"src/ejabberd_c2s.erl"},{line,2110}]},{ejabberd_c2s,session_established2,2,[{file,"src/ejabberd_c2s.erl"},{line,1264}]},{p1_fsm,handle_msg,10,[{file,"src/p1_fsm.erl"},{line,582}]}]}

my iq is like:

myDeviceToken

I appreciate any help

mrDoctorWho commented 7 years ago

Hi,

Did you update your erlang? As far as I remember, there was erlang:now() but then it was marked deprecated and I replaced it with erlang:timestamp().

BesatZardosht commented 7 years ago

Thanks for your response. I made a poll request to handle earlier versions of erlang.

BesatZardosht commented 7 years ago

What subscription supposed to be? when I get an offline message by checking subscription it jumps to line 113

mrDoctorWho commented 7 years ago

Thanks for the PR, I'll review it tomorrow.

As for subscription, it should be both.

mrDoctorWho commented 7 years ago

I suppose the problem resolved?

If no, feel free to reopen issue.