Handlind subscription request for offline user


I am working with JWChat. I am getting some problem with the subscription request. When I am sending a subscription request from user A to user B, user B is not getting the subscription request if he is not not online at the time of requesting. If he is online he is getting the add request. Please help me how to identify the pending request when user logins to the