Questions tagged [messagekit]

A UI Library for adding "Messages" like Chat to any iOS Application. A community-driven replacement for JSQMessagesViewController.

111 questions
1
vote
1 answer

MessageKit through pods will crash iOS application

I am working on an application using Swift and am trying to integrate an in-app messaging system. I planned on using 'MessageKit', but after adding it to my podfile, running 'pod update' and re-running my app, it crashes on launch. There is no error…
Bob Samuels
  • 385
  • 2
  • 6
  • 16
1
vote
1 answer

Slide left or right to reveal timestamp

i'm trying to implement slide to show timestamp into messengekit libaray One thing I am stuck on is how to "Slide" the entire collection view to show the timestamp of each message. That said, I don't expect the algorithm for the timestamps, I…
1
vote
2 answers

Display username in messagekit chat?

I'm struggling to find a way to display the username in the MessageKit chat view controller. I copied the MessagesDataSource from the example project with no luck. Here's what my MessagesDataSource currently looks like: extension ChatViewController:…
winston
  • 3,000
  • 11
  • 44
  • 75
1
vote
1 answer

Messagekit - issue with extending MessageType

this is my first time with MessageKit. I am trying out an example I found online. I am getting this error - "Inheritance from non-protocol type 'MessageType'" when trying to extend MessageType. I am using MessageKit 2.0.0, Swift 4.2 and iOS version…
1
vote
1 answer

Swift MessageKit issues

Here to show the image after installing MessageKit and the problems I am currently having with it. Maybe it's my pod file that is the problem but the MessageKit has issues in it. It looks like inside the MessageKit pod file some code needs to be…
Lukas Bimba
  • 817
  • 14
  • 35
0
votes
0 answers

Why every cell is displayed on load using MessageKit library?

Simply I use MessageKit library for displaying custom chats in my iOS app. But there is an issue I do not know how to resolve. How works native UICollectionView on load? not every cell is loaded to the view, but only the visible ones and a few…
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
0
votes
0 answers

Chat Not showing message history for both users in Messages Tab IOS Social Media App

I am currently working on implementing Direct Messaging in my iOS Social Media App, and thus far I have it functioning for the most part. However, I have two issues that I haven't been able to fix: 1.) The current user (we'll call him user1) can see…
0
votes
2 answers

iOS app runs successfully if uploaded direct off Xcode, crashes if updated from TestFlight. Bundle not included in the archive?

I am attempting to upload an app to TestFlight. The app compiles and runs in the simulator, and will also run on my iPhone if I install it direct from Xcode. If I archive and push it to TestFlight, then update my device from TestFlight, the app…
Chris Whipple
  • 395
  • 3
  • 13
0
votes
0 answers

How do I change the message direction?

enter image description here I don't know if the sender and the non-sender are not distinguished and the speech bubble continues to appear on the left. extension MessageVC: MessagesDisplayDelegate { func isFromCurrentSender(message: MessageType)…
0
votes
1 answer

How to fix Type 'ChatViewController' does not conform to protocol 'MessagesDataSource'

I get an error: Type 'ChatViewController' does not conform to protocol 'MessagesDataSource' when running this swiftui code but I don't know what I'm missing. extension ChatViewController: MessagesDataSource, MessagesLayoutDelegate,…
user21138718
0
votes
1 answer

How to replace detected link with custom title for that link in MessageKit using Swift?

These are my datasSource and delegate methods for my chat: func messageForItem(at indexPath: IndexPath, in _: MessagesCollectionView) -> MessageType { viewModel.message(at: indexPath) //here is returnd object that conform to protocl MessageType,…
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
0
votes
0 answers

Presenting a ViewController changes all colors to grayscale

Whenever I present a view controller (eg UIAlertViewController, UIViewController) in this Chat ViewController, all the colors in the Chat ViewController turn to grayscale. I do not want this to happen. I would like the colors to remain the same, as…
Plato
  • 111
  • 2
  • 7
0
votes
2 answers

messageInputBar not dismissing when I dismiss my MessagesViewController (MessageKit, begging for help!)

I am using MessageKit. I've created a MessagesViewController. I add messageInputBar as a subview from viewDidLoad along with a navigational bar that includes a back button. Whenever I am in this view controller and I tap on the messageInputBar's…
BiggRojo
  • 31
  • 5
0
votes
0 answers

I want to delete a message from a chat using messageKit

Use messageKit with Firebase When I delete any message in the chat using long press, it gets deleted in front of me, but when I leave the chat and come back, it is not actually deleted. override func collectionView(_ collectionView:…
Raeed
  • 1
  • 1
0
votes
1 answer

MessageKit in IOS : Message not showing

I tried to make project as simpler as I can ... because I think I do forget something , but I don't know what , and I'm struggling since 2 hours .... As you can see on the screen : view is loaded , except the messages . please find my code here…