Closed apphipster closed 7 years ago
Hi @apphipster The second commend on the issue you provided and the README says that you must compile the module with ejabberd itself.
I managed to compile the module using the following command:
(Attention: the path varies depending on the installed ejabberd version)
$ bin/erlc -I lib/ejabberd-16.08/include/ -I deps/ -pa lib/ejabberd-16.08/ebin src/mod_apns.erl
One warning is displayed:
src/mod_apns.erl:12: Warning: undefined callback function depends/2 (behaviour 'gen_mod')
Add the module into config file at /etc/ejabberd/ejabberd.yml
Restart ejabberd.
In the file jeabberd.log there is an entry:
2016-09-26 12:43:39.575 [info] <0.6670.0>@mod_apns:start:154 mod_apns Has started successfully!
You can also check the presence of the module using the link: http://localhost:5280/admin/server/macbook.local/node/ejabberd@localhost/modules/ (replace "macbook.local" with your domain)
Closing due to inactivity.
I have a similar issues with the one from here: other issue
I am using ejabberd-16.08 on Mac OS Here are the steps I do to add the custom module into ejabberd:
$ ./erlc -I ejabberd/include mod_apns.erl
Do you have any suggestion? Any help is appreciated.