Client : iOS/android
User A send message to User B. if user B currently in online state and suddenly if there is a network connection problem, in that time if User A send message to user B, ejjaberd server behave like User B is in online state. So its sending those offline message to user B who is offline, so message get lost.
This above case is working fine with XMPP without BOSH implementation.