QuickBlox / quickblox-ios-sdk

QuickBlox iOS SDK for messaging and video calling
https://quickblox.com/developers/IOS
MIT License
396 stars 358 forks source link

ChatDataSource not add messages #890

Closed maulik6994 closed 7 years ago

maulik6994 commented 7 years ago

New Issue Checklist

Environment details

Info Value
iOS Version e.g. 8.0
Quickblox iOS SDK version e.g. 2.7.6
QuickbloxWebRTC SDK version e.g. 2.2.1
Xcode Version e.g. Xcode 8.1
Repro with our demo sample e.g. does it happen with our demo sample?

Did this work before?

Expected behavior

Actual behavior

Logs

Please use the following template for logs:

<details>
<summary>Title for logs </summary>
// Your logs here
</details>

To enable full logs use the following code:

[QBSettings setLogLevel:QBLogLevelDebug];
[QBSettings enableXMPPLogging];

Steps to reproduce the behavior

Any others comments

Raikerian commented 7 years ago

Hi,

Can you add more information on what problem do you have? We are not able to help you just by reading a title of the issue.

maulik6994 commented 7 years ago

i am using with swift but addMessage method not adding messages

ghost commented 7 years ago

Hi @maulik6994, where exactly it doesn't work?

ghost commented 7 years ago

@maulik6994, Could you please provide more details ?

maulik6994 commented 7 years ago

implement custom UI, in that [changeDataSource:self withMessages:messagesArray updateType:updateType];

Not getting call when load messages. Delegate perfectly..

ghost commented 7 years ago

@maulik6994, You should use the following methods for data source:

- (void)addMessage:(QBChatMessage *)message;
- (void)addMessages:(NSArray<QBChatMessage *> *)messages;

- (void)deleteMessage:(QBChatMessage *)message;
- (void)deleteMessages:(NSArray <QBChatMessage *> *)messages;

- (void)updateMessage:(QBChatMessage *)message;
- (void)updateMessages:(NSArray <QBChatMessage *> *)messages;
maulik6994 commented 7 years ago

we have used both of this methods.

Issue in QMChatDataSource object in to that not getting stored messages.

ghost commented 7 years ago

@maulik6994, Could you please provide a project sample with this issue?

maulik6994 commented 7 years ago

Ok here I attaching the demo. please check it in xcode 9.0

QuickBloxDemo.zip

Thank you.

ghost commented 7 years ago

QuickBloxDemo 2.zip

I have updated your project with our data source. Just tap the login button - the user is hardcoded.

One thing you should know is that our collection view is flipped upside down and that's why our data source is reversed. So in this example new messages are added at the top of your table view.

There are two ways to resolve it:

  1. use our collection view and base collection view cells.
  2. flip your table view upside down.
ghost commented 7 years ago

Hi @maulik6994,

Any updates ?

Thanks

maulik6994 commented 7 years ago

Hey, We have Holidays this week.

I will update you by Monday..

Thanking you...

On Oct 19, 2017 7:33 PM, "andrey" notifications@github.com wrote:

Hi @maulik6994 https://github.com/maulik6994,

Any updates ?

Thanks

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/QuickBlox/quickblox-ios-sdk/issues/890#issuecomment-337917964, or mute the thread https://github.com/notifications/unsubscribe-auth/AZt4JZeXXc5bx04yZd0ca7acm6HYdTaWks5st1a4gaJpZM4P9cYW .

ghost commented 7 years ago

Hi @maulik6994, Any updates ?

Thanks

maulik6994 commented 7 years ago

Thanks thats Done..

one more help please. Do you have demo of videochat in swift?

ghost commented 7 years ago

@maulik6994, No, but we have planned it for the future releases. You could follow our blog to keep track of updates.

maulik6994 commented 7 years ago

Ok Thanks @VitaliyGuru