Comments (21)
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.
A public thread should work no differently from a private one where the user can see all previous messages.
Simon
from chat-sdk-ios.
Well for one thing mine doesn't have the public-threads in the database. However it does have threads and messages:
from chat-sdk-ios.
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.
Here is the behavior.
-
Start a new chat by being the very first person ever to enter the room.
-
Make a posting. Stay in Chat.
Result: New thread, new users, new message in Firebase. -
Leave Chat
Result: Users disappears from firebase in that chat room. -
Enter Chat
Result: Nothing shows up on screen. However, another message was added to the thread. -
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.
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.
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.
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.
Can you confirm which hidden flag you are referring to?
from chat-sdk-ios.
let block = BNetworkManager.shared().a.publicThread().createPublicThread(withName: tile.symbol!, entityID: eID, **isHidden: false**).thenOnMain
from chat-sdk-ios.
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.
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.
@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.
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.
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.
@bensmiley !! Perfect !! That’s exactly what I want it.
from chat-sdk-ios.
@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.
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.
@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.
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.
Thanks @bensmiley !! I appreciate very much your support and the work that your are doing !!
from chat-sdk-ios.
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)
- could not join a group HOT 8
- iOS 15 upgrade
- [Assert] Error in UIKit client: -[UIWindow setScreen:]
- When a sender sends message(when receiver is in background or killed state) and kills the app. When receiver reads the message and kills the app after this when sender opens the hatbox read receipts is not working.
- support for firebase 9.5.0
- Help On including Google-Mobile-Ads-SDK
- UX and UI within Chat SDK : Customise
- ios unable to send image message from gallery or camera HOT 4
- IPhone app crash HOT 5
- Any updated instructions for implementing in existing Firebase project?
- Messages wont decrypt after using the method EncryptionHandler.importKeyPair(keyPairString
- '(child:) Must be a non-empty string and not contain '.' '#' '$' '[' or ']'
- http://chatsdk.co/features/ link listed in README.md is broken, page not found
- See Original and Translated Message
- Upload Image to GetStream CDN
- Messages are not marked as read on IOS HOT 2
- Send image not working
- Action sheet closes app
- Core Data mess - Does it do anything on background? HOT 3
- run ios app give this error it was working before 9 months now its show this error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chat-sdk-ios.