Comments (4)
@vinayappypiellp you need user id to create new chat dialog. As a solution, you can download user from server by login or e-mail, then download (or create) chat dialog by user id. Please add more information about your use-case and we will try to find better solution for it.
from android-messenger-app.
@TatankaConCube , my use-case is, I receive user email from an api, and i need to start chat with the email.
from android-messenger-app.
@vinayappypiellp for your case use API to Retrieve user by email, then use
RequestGetBuilder requestBuilder = new RequestGetBuilder();
requestBuilder.setLimit(1);
requestBuilder.in(Consts.DIALOG_OCCUPANTS, userId);
ConnectycubeRestChatService.getChatDialogs(ConnectycubeDialogType.PRIVATE, requestBuilder).performAsync(new EntityCallback<ArrayList<ConnectycubeChatDialog>>() {
@Override
public void onSuccess(ArrayList<ConnectycubeChatDialog> dialogs, Bundle params) {
ConnectycubeChatDialog targetDialog = dialogs.get(0);
}
@Override
public void onError(ResponseException exception) {
}
});
targetDialog
- chat dialog which you can use for sending messages.
from android-messenger-app.
feel free to open other questions if you have
from android-messenger-app.
Related Issues (20)
- base occupants_ids field must contain an opponent user id HOT 1
- ConnectycubeChatService.getInstance().isLoggedIn is false even after login HOT 1
- Can't find account key HOT 1
- No incoming call notification HOT 2
- Can we create a group dialog with 2 members and Add new members successively? HOT 6
- Android 10 ,11, and above HOT 13
- User Issue HOT 7
- Push is being sent to both environments even I'm defining only one HOT 1
- Call Reject and and accept through notification HOT 2
- base You don't have appropriate permissions to perform this operation HOT 3
- Call Ringing Status HOT 11
- Issue is a tech one heads Up HOT 1
- calling screen open when app is killed mode? HOT 3
- Admin dasboard not opening, Users getting base forbidden after login HOT 3
- Base Forbidden. Need User after coming back to background app after app update HOT 3
- Getting 9 chat dialogs in app only out 200+ chat dialogs as seen in dashboard HOT 11
- The SDK (Your Server ) is blocked in many countries HOT 2
- Connectycube android VideoChatWebRTCSignalingManager not getting assigned HOT 3
- ConnectyCube resets or deletes the user FCM Token from Firebase Messaging as well for the device after unsubscribe from pushes HOT 7
- How to send a list of chat messages from other screen than chat message screen HOT 3
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 android-messenger-app.