Coder Social home page Coder Social logo

Comments (21)

simonsmiley64 avatar simonsmiley64 commented on May 22, 2024

Hi @jimijon,

Can you confirm whether the message was sent in Firebase? You can find the thread and then look at the last message which was sent.

This will identify whether the problem is coming from your Firebase configuration (we're creating it on the phone and it's not getting to the database) or the connection to the phone (the message is being uploaded but then no downloaded again).

Once we know which of these is causing the issue we can help troubleshoot why this problem is occurring on your system.

screen shot 2017-05-10 at 09 52 09

A public thread should work no differently from a private one where the user can see all previous messages.

Simon

from chat-sdk-ios.

jimijon avatar jimijon commented on May 22, 2024

Well for one thing mine doesn't have the public-threads in the database. However it does have threads and messages:

screen shot 2017-05-10 at 6 07 34 am

from chat-sdk-ios.

simonsmiley64 avatar simonsmiley64 commented on May 22, 2024

And can you find the thread you are creating?

The database is realtime so the thread should show up yellow when a message is typed. Can you confirm if your messages are getting through?

from chat-sdk-ios.

jimijon avatar jimijon commented on May 22, 2024

Here is the behavior.

  1. Start a new chat by being the very first person ever to enter the room.

  2. Make a posting. Stay in Chat.
    Result: New thread, new users, new message in Firebase.

  3. Leave Chat
    Result: Users disappears from firebase in that chat room.

  4. Enter Chat
    Result: Nothing shows up on screen. However, another message was added to the thread.

  5. Repeat the process with a new "public chat"

Same Behavior BUT:: This new chat, when I go back into it, will display new messages on the screen.

Weird.

from chat-sdk-ios.

simonsmiley64 avatar simonsmiley64 commented on May 22, 2024

Hi @jimijon,

I would recommend you do the following:

Download a new version of the Chat SDK. The base version is fully configured to our test accounts. Load it up and test this exact functionality without making any modifications to the code. It should work as expected.

This will let us know whether the issue is one with the Chat SDK or one which has been added during your coding. This will then help us troubleshoot the right area (if it is a problem with the Chat SDK we can then fix it and push the fix).

Simon

from chat-sdk-ios.

jimijon avatar jimijon commented on May 22, 2024

Pulled the latest version. Went to run Xcode Swift. No iOS Target or Scheme appears. can't run it.
Did you fix the Firebase issues I pointed out about the problem with ChatFirebaseAdaptor and Firebase? Because I have to edit that by hand on every upgrade. Anyway,,, this seems to be the only show stopper problem I am experiencing so far.

from chat-sdk-ios.

jimijon avatar jimijon commented on May 22, 2024

Ok, made an iOS target and it worked. Hmm. Then I changed the hidden flag to false and they appeared. I guess I don't understand what the use of the "hidden" flag is.

from chat-sdk-ios.

simonsmiley64 avatar simonsmiley64 commented on May 22, 2024

Can you confirm which hidden flag you are referring to?

from chat-sdk-ios.

jimijon avatar jimijon commented on May 22, 2024
let block = BNetworkManager.shared().a.publicThread().createPublicThread(withName: tile.symbol!, entityID: eID, **isHidden: false**).thenOnMain

from chat-sdk-ios.

simonsmiley64 avatar simonsmiley64 commented on May 22, 2024

Hi @jimijon,

The hidden flag is some new code we added as there are certain situations where you might want to create a public thread, have it unavailable for users to see and enter, but still behave like a public room (user added and removed from the list when they arrive and leave).

In general it should be used for maintaining public rooms on a server and so the majority of cases the BOOL should be set to NO.

Hopefully this functionality should be working as expected now?

Sorry for the confusion and thanks for your continued patience and clearness while solving this issue 🥇

Simon

from chat-sdk-ios.

bensmiley avatar bensmiley commented on May 22, 2024

Just to help people in the future, this issue stems from this feature request #44. When the hidden flag is set to yes, the room will be a secret public chat. It will behave like a public chat in that when a user enters, they are added to the user list and when they leave, they are removed from the user list. But it will not be displayed in the public rooms tab of the chat.

from chat-sdk-ios.

cesariel avatar cesariel commented on May 22, 2024

@bensmiley @simonsmiley64 How can I enter an already created PublicThread? With the entityID. Maybe a function like enterPublicThread(entityID: id) exists and I don't know? Thanks!

from chat-sdk-ios.

simonsmiley64 avatar simonsmiley64 commented on May 22, 2024

Hi @cesariel,

If you create a new ticket for this issue then I can look into it. This way it will help other users if they have the same problem and will also allow us not to be confused with any replies on this issue.

Simon

from chat-sdk-ios.

bensmiley avatar bensmiley commented on May 22, 2024

If you have the entity ID, you can get the thread using that:

id<PThread> thread = [[BStorageManager sharedManager].a fetchEntityWithID:entityID withType:bThreadEntity];
UIViewController * vc = [[BInterfaceManager sharedManager].a chatViewControllerWithThread:thread];
[self.navigationController pushViewController:vc animated:YES];

Assuming it already exists, you can open it as normal using the chat view controller.

from chat-sdk-ios.

cesariel avatar cesariel commented on May 22, 2024

@bensmiley !! Perfect !! That’s exactly what I want it.

from chat-sdk-ios.

cesariel avatar cesariel commented on May 22, 2024

@bensmiley I have another question. When I pushViewController to my ChatViewController : BAppTabBarController I can have a Go Back bar button item but when I present ViewController I have all the (+) Bar Items but I don’t have a Go Back Item Bar. How can I present the view controller, with a back button (Bar Item) and still have all the functionality of creating new Conversations and Creating new Public Chats? Thanks in advanded!

from chat-sdk-ios.

bensmiley avatar bensmiley commented on May 22, 2024

This is because modal views don't have a back button by default. You should add a custom UITabBarButtonItem with the name "cancel" and dismiss the view controller when it's pressed.

from chat-sdk-ios.

cesariel avatar cesariel commented on May 22, 2024

@bensmiley I'm creating this, but it doesn't show up:

let newBackButton = UIBarButtonItem(title: "Regresar", style: UIBarButtonItemStyle.plain, target: self, action: #selector(ChatSDKViewController.back(sender:)))
        self.navigationItem.leftBarButtonItem = newBackButton

from chat-sdk-ios.

bensmiley avatar bensmiley commented on May 22, 2024

It looks right to me so if you're presenting the view correctly it should work. Make sure you add it in viewDidLoad. To help further, I'd need to look at your project directly. I'd be happy to do that if you purchase an hour of priority support.

from chat-sdk-ios.

cesariel avatar cesariel commented on May 22, 2024

Thanks @bensmiley !! I appreciate very much your support and the work that your are doing !!

from chat-sdk-ios.

Vivekmalani avatar Vivekmalani commented on May 22, 2024

i will create private threads using NM.core().createThread(withUsers: user, threadCreated: { (error, thread) in })

But after that it will not appear in the list.

i will use syntax for getting list of threads is NM.core().threads(with: bThreadType(bThreadFilterPrivateThread.rawValue))

can someone help me why is getting this type of trouble and how can i resolve it.

from chat-sdk-ios.

Related Issues (20)

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.