Open badalpub1991 opened 9 years ago
Let me Explain how you will use the control:
The Control is just for UI purpose , i never written any code to send or receive message from server because i m not sure whether user will use any third party SDK or XMPP or normal REST API.
So, you make the Server part & UI part separately.
Your question : Both are send by me but it looks in same window, when i click on one time send button it looks in sender message and second time looks in receiver message. and receiver will not receive message.
Ans: Yes, i have did that for Demo purpose , based on the response you will get from server you have to make the changes in code.
How to use:
[self adddMediaBubbledata:kTextByme mediaPath:@"Hi, check this new control!"
mtime:@"8:30 AM" thumb:@"NA" downloadstatus:@"" sendingStatus:kSent msg_ID:@"AB4353GH"];
Use Below types for send and receive:
kTextByme: if you sending a text
kImageByme : if you are sending an Image
kTextByOther : if you receiving an Text
kImageByOther : if you are receiving an Image
Now update the send Status
kSent : you successfully sent an message
kFailed : message sendig failed
kSending : your message is sending to server
So , based on the above information , make the changes and let me know if you require any other help.
i am working on XMPP based ios project. i am tring to send message but i am not able to send message. means receiver will not receive the message. here is my code.
and here is my senderdidreceivemessage method from appdelegate.m
EDIT
and configure photo method
EDIT
Both are send by me but it looks in same window, when i click on one time send button it looks in sender message and second time looks in receiver message. and receiver will not receive message.
EDIT
Here is response after i click on send button.