Hi guys,
I'm trying to write a module, which triggers a HTTP POST to an API when a user receives an offline message in ejabberd. It's for an iOS app which supports Push notifications.
I followed the guide on
I tested the code in the blog post. Most parts are working, but the 'from' attribute is missing in the intercepted offline message. As you can see in the above blog post, the author's screen shot has the same problem, too. So, how can I get the sender's account name in an offline message Packet?
Did I miss something or is it a bug (in offline message, 'from' attribute is just missing)?
BTW, I configured shared roster 'Everyone' in my ejabberd config, which allows everyone to see everyone as 'contacts'. I'm not sure if it's the reason.
Thanks :)
P.S. I posted this at StackOverflow, too: