mongoose-im

How to receive message stanza without sending self presence?

微笑、不失礼 提交于 2020-01-06 06:35:49
问题 I am using mongooseim with Android and Ios application. I just want to receive message from the server from background without sending self presence to anyone because this task is done by system. But I can't receive message stanza until I send my presence to the mongooseIM. Do I missing something or there is a way by which I can get quick update from MongooseIM server in the background without sending presence? 回答1: As far as I understand you all you want to do is sync the messages when you

XMPP: count of unread messages

二次信任 提交于 2019-12-25 04:16:03
问题 I'm trying to implement chat for my webapp with following features: When user logs in he should see a number of unread messages (which is both offline messages and "unseen", I will explain "unseen" in next step). When user is anywhere in the app but on chat window he should be notified that he has a new message. Message should be marked "unseen" and must be added to the count of unread messages. The first point is quite easily achieved using XEP-0013: Flexible Offline Message Retrieval. So I

How to connect Ejabberd or MongooseIM with Node.js (or Django)

ぐ巨炮叔叔 提交于 2019-12-24 10:22:37
问题 I want to develop a backend server for a chat application using node.js (or Django) and Ejabberd or MongooseIM. And consume this API on a React Native app that should have push notifications. The idea is to manage the user profile and metadata and also the authentication ( OAuth 2.0 - social login ) through my own server, then let the management of the chat stuff to the Ejabberd or MongooseIM server. The problems come on how to make the connection between the servers. I want to login through

Call to i:im() in application debugger failed in mongooseim

半世苍凉 提交于 2019-12-14 03:14:38
问题 It seems invoking im() . after invoking ./bin/mongooseim debug shell fails with message "call to i:im/0 in application debugger fails". However, when I do it typical Erlang shell, it opens up the window correctly. Any idea why ? 回答1: There is several reasons starting debugger graphical interface could fails: you are debugging a remote server and the server cannot display its UI on your local computer through SSH. You are missing access to some Erlang components in the context of ejabberd. As

How to use stream management acks in xmpp.js (in react-native) with MongooseIM (as chat server)?

穿精又带淫゛_ 提交于 2019-12-13 18:31:56
问题 I am using xmpp.js as xmpp chat client inside react-native for both android+ios with MongooseIM as chat server. I want to implement stream management acks in the App. But according to the issue#540, xmpp.js doesn't officially support stream management for now. What can be the alternate to this? I need the stream management module only to send/receive acks between c2s and s2s. Please guide. 回答1: Stream Management, if not available in your client library of choice, is somewhat complex to

How to send XMPP message confirmation (double tick) to user1, if user2 phone's screen off using push?

二次信任 提交于 2019-12-02 08:22:07
问题 I am using react-native Android and IOS app with Mongooseim for chat server. Following is the scenario. Problem: Suppose there are 2 users - user1 and user2. They can exchange xmpp message stanza (using xmpp.js) from their Android/IOS devices when both are connected to the chat server. Now if user2 phone screen is turned off (or no xmpp connection) then how to send message from user1 to user2 and then in return user1 must receive some sort of message delivered confirmation (similarly like

How to send XMPP message confirmation (double tick) to user1, if user2 phone's screen off using push?

我只是一个虾纸丫 提交于 2019-12-02 03:44:31
I am using react-native Android and IOS app with Mongooseim for chat server. Following is the scenario. Problem: Suppose there are 2 users - user1 and user2. They can exchange xmpp message stanza (using xmpp.js) from their Android/IOS devices when both are connected to the chat server. Now if user2 phone screen is turned off (or no xmpp connection) then how to send message from user1 to user2 and then in return user1 must receive some sort of message delivered confirmation (similarly like double tick in whatsapp or hike chat messenger). This problem is more related to how to use FCM in Android

How to build erlang AMQP client in Mongooseim

℡╲_俬逩灬. 提交于 2019-12-01 13:23:18
问题 I am new in erlang. I am trying to build RabitMQ Erlang AMQP client library with my mongoose source so that I can use the library within my mongooseim modules. I downloaded the library source from here. The .ez file contains two directories, ebin and includes. ebin contains .beam files and include contains erlang .hrl files. Will it work if I drop all the .hrl files into mongooseim's apps/ejabberd/include directory and all .beam files into ebin directory? I am using make and make rel for