-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I Can't send other format message? Please add this functionality. #36
Comments
hello @Significantinfotech2020, you can send any data in the message's attachment. Our Flutter SDK doesn't have limits in this part. The main logic will be the same as sending images. Just set type for your attachment via |
I tried with this line of code but I can't send video and other formatted files. Also I tried with this link but didn't get any solution. https://developers.connectycube.com/flutter/messaging?id=attachments . Issue is when I select video file It upload on dashboard chat history but in the app, on dialog page it displays this is not an Image type. and display error image. |
As I said before:
It means you have to realize this functionality by yourself. |
Hello @TatankaConCube For delete selected message I use delete() method as per documentation.
But in this method which Ids use in the I use in this but I got this error when I press delete button:
So, suggest me. How can I do this functionality? |
in our example, there are ids of messages, which you want to delete. But in your example, you use the id of dialog but not the id of the message. It is an expected error because the server can't found messages with these ids. |
I got message_id null. How to get get it ? I tried to get message_id this way, If any other way to get message_Id then suggest me.
|
where did you get this message? For messages loaded from the server, this field can not be null. |
I use this method on delete icon onClick.
Using this method I got this error log. |
It is because you didn't upload the message to the server. In your example, you just created a local object and the server doesn't know anything about it. For the creation message on server, you have to send a message via chat or create it via REST request. |
For transferring video in chat attachment, what should I have to do in chat dialog screen? I used this snippet to transfer video file.
but I did not see video file same as image file in chat screen. In dashboard the video URL is uploaded, but when I post this url in browser, it does not play video. Here I post this uploaded video link. So, please suggest me to share video in this chat application step by step. |
@TatankaConCube Please help me to solve my confusion. |
you uploaded the file as private and you can get it only by private link, which contains token of the session. You can load this file by link from this code |
for getting a link on the opponent's side you should build it dynamically. Our SDK has the method |
I set url as private which is I mention in above code in upload file method.
Yes, you can see my above code in which I uploaded url as private. |
which problem do you have now? can you get file by this URL |
For getting file I use this way
In this method, I can't get So, please suggest me where I do mistake. |
Yes, I print this url in terminal. but problem is when I select this video link and paste it into chrome browser, then it link does not play video. and chat list I did not get video but I get image_not_found image as attachment. |
can you share url to my e-mail val@connectycube.com or to support@connectycube.com? |
Yes, I share link. Please check it. |
did this file load successfully? |
In chat page I can not load this file. but In that this widget
I mean display image which we set as this is not image. |
sorry, I meant the uploading process, it was successfully? which size of this file? did you try to upload the same file with public access? |
Yes, this url also I can see in dashboard.
242 kb.
No, still I did not try with public access.
|
In public url I get error. Below is public url log.
|
but in your example you are uploading an image "content_type":"image/jpeg","name":"image_picker2824613439700838070.jpg" is it correct? |
No, I am uploading video. but In chat list, image was displayed not video. In dashboard, this log displayed in Attachments. |
no, it is about attachment, which you set manually, but for upload you set this config "content_type":"image/jpeg","name":"image_picker2824613439700838070.jpg" from another side, 242 kb it too small size for video note: I'm not sure, that cached_network_image plugin can work with videos, I think you should search for another solution for video attachments. |
If you have idea how to work with video sharing then suggest I will try. |
I didn't investigate this feature yet, sorry, I can't help with this now. |
Hello @TatankaConCube Did you got any thing for sharing video in messaging. I tried with this, but it did not work for me. If you got any solution then please suggest me. |
Please give me reply asap for above difficulty. |
which issues do you have? There are issues with Connectycube API or with your Flutter project? If it is problem with Connectycube API, sure, we will help you to resolve it. |
I have issue while I share Video file or any other file.
Probably, I think this issue is with Connectycube API, because video is uploaded on dashboard, when I copy that uploaded link from dash board, it does not load video and I see white border square box in the middle screen and in the chat page I see error image rather than any other file such as video, audio, and etc.
We already discussed this issue on above comment. Now, If you got any solution for this then suggest me asap. |
First of all, we should understand, did you correctly upload the file to storage? As I noted before, you uploaded a video file as a picture and it is a mistake(I mean this message), need to fix it. |
I can see this type of message in dashboard chat attachment.
Yes, Exactly. |
It just attachment data, but not the data of the uploaded file, please check, which configs you set for uploading the file. You have to change them according to the type of file, which you upload to storage. If it works for pictures, it should work for video too. |
I used this method for uploading method --> select video from Gallery
--> Upload Video
--> Send Message
--> Receive Message
Now, Suggest me, in which config I have to upload video file. |
hmm... looks like image_picker plugin returns a path with the wrong file extension, you can try this workaround: imageFile = File(pickedFile.path);
imageFile = await imageFile.rename(pickedFile.path.replaceFirst(".jpg", ".mp4")); it correct loads file, and you can watch this file by link, but the better way will be found a plugin, which will return the correct path to the file. |
This is not working. It throws error while I pick file and upload on dashboard. So, it is not working.
I tried file_picker package but when after adding this package, application does not build because of this package. So, this is also not working. If you have any idea for selecting file package, then please help me. When I use file_picker package, this error displays in terminal.
|
Please reply me asap. |
please read the documentation for this plugin and do required changes https://github.com/miguelpruivo/flutter_file_picker/wiki/Troubleshooting#-issue-1 |
which error do you mean? |
It is image file extension error. |
Which Plugin did you for selecting video? How you call it in the code? |
I did it via file renaming, as I said before. As a result, the file was uploaded successfully and I open it by the link in Chrome and the video played successfully. |
I set this as you said earlier, but I got error. --> I use this method on image icon click.
--> This is
--> This is
--> When this bottom sheet opens, it display two options like image and video. When I pressed on image button, image send successfully, but when I clicked on video button, it displays error icon from CachedNetworkImage and display log which I put below.
and video does not upload on dashboard. If you find my mistake then please suggest me. |
you created file = await file.rename(pickedFile.path.replaceFirst(".jpg", ".mp4")); and use this file for method |
Thank you. It's working. |
Now, I want to set loader till video does not load completely, So How can I set this? I mean, can I get downloading progress using ConnectyCube_SDK? |
in the current realization of our SDK, we don't provide a callback with progress. |
hello @Significantinfotech2020, today we released the new version of our SDK, now it has the function If the issue was resolved, please close this ticket. |
ConnectyCube Support Team,
I can't send video, audio, gif format while I use for chatting functionality with connectycube_sdk in flutter. So, please add this functionality in your sdk. If you already done this functionality, then suggest me, how to accomplish this functionality with connectycube_sdk.
The text was updated successfully, but these errors were encountered: