I want to know that is it possible to create a chatroom and invite people ? I have setup ejabberd on my mac and implemented chat with single buddy following
this link but i want to implement MUC. I tried demo project of MUC which come with xmppframework available here ,but every time i get error 404 remote server not found. The delegate method
- (void)xmppRoomDidCreate:(XMPPRoom *)sender;
never gets called.
Instead
- (void)handleDidLeaveRoom:(XMPPRoom *)room
this method gets called. Has anyone successfully implemented MUC using localhost as server?If yes then please let me know the XMPP client you are using , because for ejabberd,it says remote server not found.
Did you try with conference.host (presumably conference.localhost) as MUC host ?
Related
same issue, other person: https://github.com/signalapp/Signal-iOS/issues/2282
We've checked out the Signal-iOS repository and we're trying to make it connect to another server. We're running an instance of the server at signal.appcraft.nl. We've modified the defines in SignalServiceKit/src/TSConstants.h to match our server and we've changed the domains in App Transport Security Settings in /Signal/Signal-Info.plist
We also cloned the Android app and that one we managed to got working just fine. The iOS app seems not to be able to connect to the internet at all without a clear error. The first HTTP call that is done is GET https://signal.appcraft.nl/v1/accounts/sms/code/<MYNUMBER>?client=ios. When we invoke that URL using curl, we get a response (and SMS) just fine. From the app, we receive a Signal was unable to connect to the internet. Please try from another WiFi network or use mobile data. error. We also changed NSAllowsArbitraryLoads to Yes.
We've added a breakpoint in /Signal-iOS/Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.m:292
# /Signal-iOS/Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.m:292
(lldb) expr error
(NSURLError *) $3 = 0x00000001c0244800 domain: #"NSURLErrorDomain" - code: 18446744073709550617
Please advise
When my app starts, I am using QMServicesManager to:
- (void)logInWithUser:(QBUUser *)user
This should take care of authentication and logging in to the chat service.
The login API call to the chat service returns without an error but I am still getting an error once I try to send a message:
"You are not connected to chat."
Calling [QBChat instance]).isConnected returns false
At that point, if I try to to resolve this by calling QMChatService:
- (void)connectWithCompletionBlock:(QBChatCompletionBlock)completion
I get an error: "Attempting to connect while already connected or connecting."
Update:
Using extended logs of QuickBlox I can see where this begins. logging in to the chat service actually fails without returning any error in the return block.
Here is the log:
23:07:12.982 [ChatService] Connecting to Chat, host: chat.quickblox.com, user JID: ...
23:07:42.983 [ChatService] Did disconnect
Looks like it's timing out...
Any insights about that?
Try setting [QBSettings setLogLevel: QBLogLevelDebug]; when application starts in the AppDelegate.
This would enable you to see the QuickBlox Log in your Xcode console which will give a better message about what's happening.
I'm using sinch and I've gotten the client to work by registering a user, but I can't send a message. When I click my send button, nothing happens. The required methods that need to be implemented, such as messageFailed(), messageDelivered(), etc. are not being called either. Does anyone know why?
Have you registered the one more user? Can you enable logging and share the full log output.
See comment below, user tried to send message to self
I have a challenge with XMPPFramework today...
I've configured ejabberd correctly: server is up and running and registering users correctly by in-band registration.
But when I try to send a subscription request from one device, the second one can't recieve the presence for the first one. Here's the code I use on the first device to subscribe to a user, as documented:
[[[self appDelegate] xmppRoster] addUser:userJID withNickname:nickname groups:nil subscribeToPresence:YES];
And if everything goes ok, the second device must fire the delegate method:
- (void)xmppRoster:(XMPPRoster *)sender didReceiveBuddyRequest:(XMPPPresence *)presence
The problem is that this delegate method is never fired.
The server creates the new contact for the user, I can see it on ejabberd web administrator, but the subscription type is set to none.
Any ideas?
UPDATE:
Well, it seems that I was forgetting to include the hostname into the JID. Now, the delegates for XMPPRoster are not being called, but I can see on ejabberd that the request is not 'none' but 'both' and pending validation.
Can't imagine why the XMPPRoster delegates are not firing... it seems that ejabberd server don't send the proper notification when a user receives a new subscription request...
It seems that eJabberd was misconfigured or something. Just installed OpenFire and everything works correctly.
Is there a way to receive Facebook chat/messages through XMPP in Rails? I've checked with xmpp4r_facebook but so far I can only send messages with it. Thanks!
You should be able to set a message callback using add_message_callback. The echo example from xmpp4r should get you started: https://github.com/ln/xmpp4r/blob/master/data/doc/xmpp4r/examples/basic/echo.rb.