GithubHelp home page GithubHelp logo

twilio / twilio-conversations-demo-ios-swift Goto Github PK

View Code? Open in Web Editor NEW
16.0 8.0 15.0 502 KB

Twilio Conversations for iOS Demo application in Swift

License: MIT License

Swift 99.61% Ruby 0.02% Shell 0.38%
conversations twilio-conversations twilio demo-app reference-implementation

twilio-conversations-demo-ios-swift's People

Contributors

gray-wind avatar mkaboud-tw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

twilio-conversations-demo-ios-swift's Issues

cannot send media messages

the sdk keeps returning this error message when i try to send media
🎦💥 Cannot read from done, closed or notStarted state

Update messaging attributes

This func message.updateAttribues(attributes:)  return error message that the attributes too long. We've discovered that, although the documentation we've reviewed (https://www.twilio.com/docs/conversations/attributes) states that the JSON file in the message attributes can be up to 16KB, we're only able to send message attributes JSON of about 6-7KB for each message.
Have there been any changes to the maximum size of message attributes JSON recently?

System messages causing app to crash

Twilio Conversations assigns the "system" identity to messages created without an author. This means that some ConversationMessage records will have an identity but no participantSid.

The schema for the ConversationMessage in this app requires a participantSid property. When you attempt to view conversations with system messages, the app crashes with the log "NSLocalizedDescription=participantSid is a required value" and Xcode brings you to line 64 of ConversationsApp/Models/CoreData/CoreDataManager.swift.

Here is screenshot of Xcode during a crash

Screen Shot 2023-10-11 at 3 29 28 PM

Steps to Reproduce

  1. Log into the app
  2. Create a conversation
  3. Grab the conversationSid from the Twilio Console
  4. From the command line, create a message in the conversation with the "author" property undefined, like so...
curl -X POST "https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages" \
--data-urlencode "Body=System test" \
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
  1. Go back to the app, open the conversation with the system message
  2. The app should crash

Is there any conditions for joinConversation or attributes for conversation?

In my code,
user1 creates a conversation, and if use conversation(withSidOrUniqueName:), user1 can join the conversation.
But if user2 uses conversation(withSidOrUniqueName:) directly, the error DataFetchError.requiredDataCallsFailed comes back.
In the opposite , user2 creates a conversion but user1 can't join the conversation.
I'm sure there is correct channelId in backend and be used correctly in iOS...
So is there any conditions for joinConversation or attributes for conversation?
Thanks in advance.

Reactions

Here there is one functionality where you can add reactions to the messages. But when the app is killed state how we can modify the messages attributes. I don't want to redownload all the messages from twilio that are already there in my local db as it will create an overhead of downloading messages for each conversation and saving in db again. Can you tell me how can I fix this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.