Questions tagged [jsqmessagesviewcontroller]

JSQMessagesViewController is an elegant messages UI library for iOS (now deprecated).

385 questions
3
votes
1 answer

Setting minimum width for some bubbles

I was wondering which was the correct approach to setting a minimum width for some bubbles. I've tried overriding the applyLayoutAttributes: in my custom cell, but I need access to my datasource to know which cell should have a minimum width. I've…
3
votes
3 answers

hide the inputToolbar in JSQMessagesViewController

I am using JSQMessagesViewController for my chat application. When there is no internet activity I would like to hide the inputToolbar I tried this, but that does not work: self.inputToolbar.frame.size = CGSize(width: 0,height: 0) When I set…
Edwin Vermeer
  • 13,017
  • 2
  • 34
  • 58
2
votes
1 answer

JSQMessage outgoing bubble alignment issue

I'm using JSQMessagesViewController and whenever I send a message my outgoing bubble aligns to left like this, https://i.stack.imgur.com/WHQI4.png My incoming bubble is aligning correctly to left but I want my outgoing bubble to align at right…
2
votes
1 answer

Change height of input textfield JSQMessageController

I have the following problem with JSQMessageViewController in an iPhone X-range deployment. The home-bar overlays the input field and the rounded bottom-corners cut-off part of the field. How can I adjust the height so this doesn't happen? Thanks…
Hews
  • 569
  • 6
  • 19
2
votes
0 answers

Cannot locate the exact cause of a fatal error in swift (exc_breakpoint)

I am current using Crashlytics to collect errors that user run into, and one of the error shows the following. I was unable to reproduce the error or locate the cause since I don't really understand the log. 0 myapp …
Vincent Lam
  • 151
  • 2
  • 2
  • 10
2
votes
1 answer

Admob Banner at the top of the screen

I want to have the Admob banner at the top of the screen instead of the bottom. This is what i copied from the Admob Documentations. func addBannerViewToView(_ bannerView: GADBannerView) { …
2
votes
0 answers

Add a custom button to JSQMessage cell

I have to build a UI same as below The UI i have successfully developed is The UI i have developed is using all existing controls and classes, i have not customized any cell for this UI. Now i am stuck to add a DIMOND button with count…
aqsa arshad
  • 801
  • 8
  • 27
2
votes
1 answer

JSQMessages ViewController chat without creating any child in Database

I have used JSQMessagesViewController in my Viewcontroller. The chat opens with anonymous user. The chat is working fine but i need some change in database. As database is firebase for it. I'm creating a child in my database when any message go to…
siddle
  • 137
  • 2
  • 10
2
votes
0 answers

How do I correctly set up an unread message indicator for a chat app using Firebase?

I've built a chat feature into my app using the JSQMessagesViewController library and Firebase. There is a tableView of conversations that include labels for the username and lastMessage received from that user. Currently, I am displaying a small…
2
votes
0 answers

JSQ Messages Avatar Image is not loaded because of completion handler failure

I am pretty new to completion handlers, thats why I am asking this. I need to have a working completion handler so that the image gets the data of the firebase database, before it is returned. This is the code snippet. override func…
2
votes
1 answer

send location using JSQLocationMediaItem

I am using JSQMessagesViewController to implement chat in my app. I want to be able to send the user that I am chatting with my location. This is what I did. func locationManager(_ manager: CLLocationManager, didUpdateLocations locations:…
juelizabeth
  • 485
  • 1
  • 8
  • 31
2
votes
2 answers

JSQMessageData append Json data

I am trying to add json values in JSQMessageData to show the message on JSQMessagesViewController. The view is set up and this the lite chat(can chat only once).We use an api to send and receive messages. The problem is when I fetched data from api…
Lije
  • 45
  • 1
  • 8
2
votes
1 answer

User Specific Avatar in JSQMessagesViewController with SDWebImage

As the title would suggest im using JSQMessagesViewController. Id like each user to have their own Avatar [UIImage] ill be getting this from a URL in FirebaseDatabase and extracting it via. SDWebImage. I am able to get this inside; override func…
2
votes
1 answer

Show LocationMediaItem in JSQMessagesViewController

I have just tried implementing the LocationMediaItem in my Xamarin.iOS app using JSQMessagesViewController. Everything worked out fine, only problem is that the UICollectionView cell which is supposed to show the location is stuck on loading forever…
Florensvb
  • 209
  • 1
  • 10
2
votes
1 answer

Read UnRead status in JSQMessagesViewController

I am using Firebase and working in Swift 2.3 and Xcode 7.3 I create chat app using JSQMessagesViewController Chat working fine in live mode and in background mode I want to set read, pending and unread status of messages in bubbles like WhatsApp and…