Questions tagged [layerkit]

LayerKit is the iOS SDK for interacting with the Layer communications cloud. It provides a simple, object oriented interface to the rich messaging capabilities provided by the platform.

LayerKit is the iOS SDK for interacting with the Layer communications cloud. It provides a simple, object oriented interface to the rich messaging capabilities provided by the platform.

In order to use LayerKit you must be a registered developer with a provisioned application identifier and have configured a backend system to act as an identity provider for your client applications. All aspects of this setup are covered in detail in the Layer Integration Guide.

https://github.com/layerhq/releases-ios

13 questions
2
votes
0 answers

Generate JWT on Firebase-side

My application using Google's Firebase as backend, I'm happy with Firebase e-mail authentication and I have some users in database on it. Currently I need to integrate Layer (chat service) to my application, it uses JWT authentication tokens sign-in…
Vasily
  • 3,740
  • 3
  • 27
  • 61
2
votes
3 answers

LayerKit's newConversationWithParticipants always throws FMDatabase "not an error" on first call

I'm using LayerKit 0.17.3 with Swift and newConversationWithParticipants always throws an error on first time, with the domain set to FMDatabase and with a "not an error" error. Any subsequent call gets expected result. Initial error: Error with…
kokernutz
  • 268
  • 3
  • 9
1
vote
0 answers

Is it possible to query a LayerKit LYRMessage by the message's text?

I want to add the ability to search for conversations/messages in LayerKit by message text content. Is this possible? I'd assume I'd need to query on the LYRMessagePart of the LYRMessage in some fashion, but I'm having no luck. Something like so…
1
vote
1 answer

iOS 10 Simulator LayerKit connection failed

After moving to latest mac OS Sierra and Xcode 8, LayerKit(version 0.22.0) stop working on simulator. Always return error: Error Domain=com.layer.LayerKit.Security Code=-34018 "Generation of key pair failed with result code -34018."…
Tayphoon
  • 71
  • 9
1
vote
1 answer

LayerKit setting additional information to LYRIdentity

I am using LayerKit with Atlas, it works perfectly without any issue but i'm curios that how can i set information like firstName, lastName, displayName, phoneNumber, etc to LYRIdentity? This properties are already available in LYRIdentity class but…
Pratik Jamariya
  • 810
  • 1
  • 10
  • 35
1
vote
1 answer

Altas layer create fake initial message

I use Atlas Layer to make a chat between an app user on one side and a support user on another side. Everything works great. But I need to have a welcome message from support side when user starts to chat for the first time. And I don't understand…
Valentin Shamardin
  • 3,569
  • 4
  • 34
  • 51
1
vote
0 answers

Fetching messege from layerkit ios error

I am creating a group through layer kit iOS SDK. Owner of group is sending push to participants and one message while creating a group. Problem is that when participants fetch the message the conversation object comes null some times, below is my…
Nazish Ali
  • 320
  • 3
  • 16
1
vote
1 answer

Layer-Atlas iOS ConversationViewController Set Conversation not working

I am trying to create a ConversationViewController with prespecified participants. When I create the conversation and push the controller, the participants address bar doesn’t show any names. Also, if there is an existing conversation started, the…
0
votes
0 answers

LayerKit connection error "Generation of key pair failed with result code -34018"

I am getting an error while connecting LYRClient as "Generation of key pair failed with result code -34018" I followed the link asking to update sdk version below but its also not…
Brammanand Soni
  • 177
  • 1
  • 4
  • 12
0
votes
1 answer

LYRConversationOptionsDistinctByParticipantsKey unresolved identifier after updating to LayerKit 0.22.0

After updating from Layer 0.17 to 0.22, I'm getting this build error: "Use of unresolved identifier 'LYRConversationOptionsDistinctByParticipantsKey'" Code: let currentConversation = try! appDelegate.layerClient.newConversation(withParticipants:…
D_________
  • 563
  • 5
  • 14
0
votes
1 answer

LayerKit iOS: Cannot request authentication nonce because client is already authenticated

I am working on an app and trying to integrate LayerKit into it. After every 10 minutes, Layer has to be authenticated again as every nonce is valid for 10 minutes. When I am trying to authenticate it, I get an error: Cannot request authentication…
Rahul Garg
  • 153
  • 1
  • 1
  • 12
0
votes
1 answer

Show conversations in Layer (with Atlas) even if there are no messages

I am trying to show all conversations that have been created, even if a message was not sent. However, I can't for the life of me figure it out. I've hit a million dead ends. Does anyone know if this is even possible? Perhaps a more specific…
John Farkerson
  • 2,543
  • 2
  • 23
  • 33
0
votes
1 answer

How to join an existing conversation with conversation ID in layer sdk?

I'm implementing group chat feature using Layer SDK. From the iOS SDK how can I fetch the LYRConversation instance using the conversation ID considering that I am not a part of that conversation. LYRQuery class specifies that it runs the queries…
mohonish
  • 1,396
  • 1
  • 9
  • 21