Comments (9)
hello @vaima75, for resolving your issue just provide access on retrieving users via API. For it go to your admin panel by path Admin panel -> Your app -> Users -> Setting and in the section 'PRIVACY AND SAFETY' tick needed checkboxes.
from connectycube-flutter-samples.
Hi @TatankaConCube, I've enabled both of them but my issue isn't with the system but to convert Future CubeUser instances while I require CubeUser Instances from getUserBy* and getUsersBy* methods using createSession() [which itself is future instance].
from connectycube-flutter-samples.
In your demo, you are using "configs.dart" which has alias records from demo app database. For this app to work properly, I've to add user records in my app database and create an alias record [list user = [ CubeUser(), CubeUser(), .... ]] in "configs.dart". This file is used to create sessions to perform certain operations. My query is "how to get user data dynamically and perform those operations?". Every time I try to implement get* methods or when I create a session (app session not user) I don't know how to use that session to fetch user data as it shows 401 error.
from connectycube-flutter-samples.
If possible, kindly provide implementation sample for reference.
from connectycube-flutter-samples.
here is a simple example, how to create an empty session, then get the user by login, then create a session with this got user:
createSession().then((value) {
return getUserByLogin("marvin188").then((userFromServer) {
userFromServer.password = "supersecurepwd";
return createSession(user).then((session) {
log(value.toString());
});
}).catchError((error) {
log(error.toString());
});
});
Now we are developing a simple Chat sample and it will contain sign up logic for using chat options.
from connectycube-flutter-samples.
Hi @TatankaConCube, thanks for sharing the sample. I'm able to get the CubeUser and list of CubeUsers with get* methods. One small favor, how to display such values on Widget or access them through a variable. I tried one sample here
'vcinfo.dart'
var name;
void foo(){
createSession().then((value) {
return getUsersByTags({'Doc'}).then((userFromServer) {
name = userFromServer;
}).catchError((error) {
log(error.toString());
});
});
}
Accessing the variable in main.dart
import 'vcinfo.dart' as vcinfo;
@override
void initState() {
super.initState();
init(
vcinfo.appId,
vcinfo.authKey,
vcinfo.authSecret,
);
vcinfo.foo();
}
......
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
**Text(vcinfo.name),**
Text(
'You have pushed the button this many times:',
),
I tried the same with Id and Login get methods but the return value is null.
from connectycube-flutter-samples.
Is it Holiday going!!!
from connectycube-flutter-samples.
sorry @vaima75, but your latest questions not related to ConnectyCube API or SDK. Please search how to add items to flutter widgets on Flutter cookbook or other sources.
from connectycube-flutter-samples.
@vaima75 happy to inform you, today we released our realization of a simple example of a Chatting app which demonstrates, how to use ConnectyCube Flutter SDK for the implementation chat functionality in your app.
from connectycube-flutter-samples.
Related Issues (20)
- User Session Times Out and doesn't reconnect HOT 1
- Issue with ConnectyCube User Session Token Creation - "Unexpected Signature" HOT 23
- When internet is slow, getting a timeout log but not getting a callback HOT 5
- Cannot create chat group with more than 30 people HOT 4
- Notifications send to all attendees [even the host] HOT 2
- Reject call from notifications not ending the call for the other opponent HOT 23
- Notifications and incoming call screen appear on the same time, when the app is open. HOT 11
- Declining the call from the push notifications while the app is killed it doesnโt send an event to the other participant HOT 28
- Call notifications is not showing HOT 1
- Cannot receive message from multiple accounts login different session same device HOT 2
- [iOS] p2p_call_sample won't build using latest Flutter HOT 4
- Wrong primary video rendered on the video call HOT 6
- VOIP not working in IOS Terminated State and No call log preview in Phone App (IOS)
- Join directly on calls or Re-join or establish calls when participant session drops suddenly HOT 10
- Got troubles with building Flutter code samples.Can anybody help me create a simple sample for p2p calls HOT 3
- Null check operator on P2PClient.init HOT 5
- Intermittent issues in conference calls HOT 1
- Mute audio on conference video call [iOS only] not working HOT 6
- Hang up exception block the session from start [ [DTLS alert], error object is [Instance of 'WsHangUpException']] HOT 8
- Issues in video calls HOT 1
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 connectycube-flutter-samples.