eJabberD-FCM integration guide

Hi, I'm writing an Android application where I need to do eJabberd integration with FCM. I'm using 3rd part lib SMCK for XMPP connection. Here I'm able to do following things:
# build connection directly to eJabberD server, so receiving message too.
# send FCM configuration to eJabberD guy,
# direct message receiving from FCM console too.
# BUT if I set presence UNAVAILABLE then neither I'm getting message from eJabberd nor form FCM.

Any suggestion ?

Syndicate content