This is a migrated thread and some comments may be shown as answers.

Integratig socket.io caht app in friends app

10 Answers 163 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
sampath
Top achievements
Rank 1
sampath asked on 11 Aug 2014, 09:10 AM
i want to integrate socket.io and express in my friends sample app for chatting, is there any tutorial for this, or what should i replace in place of localhost and port 3000 for my app

10 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 14 Aug 2014, 09:17 AM
Hi sampath,

Thank you for contacting.

While you develop the application, you should be able to test it with a local express server, running on localhost:3000 for example. The only things you should consider in that case are:
 - The phone should be connected to the same network as the computer running the server.
 - From your AppBuilder app, you will have to connect (redirect) to the real IP of the computer running the server. For example: navigator.app.loadUrl("192.168.x.x:3000");

To get the IP, you can use the ipconfig/all command under command line.

Here is one useful plugin, that enables sockets on Android devices:

I hope this helps. Please, let me know if you need further assistance and I will be happy to help again.

Regards,
Kaloyan
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
sampath
Top achievements
Rank 1
answered on 19 Aug 2014, 12:12 PM
I have done testing on node js its working fine but when i upload to app builder its not working. is there any other way to add chat option to users in friends app, if i can get some help thank you.
0
Zdravko
Telerik team
answered on 22 Aug 2014, 10:42 AM
Hi Sampath,

Actually the Friends app itself is more like a communication tool and it works like a chat, but in order to use it you will have a Backend services license.

What I found the could help you to achieve your goal is a Cordova plugin that provides similar functionality and a JScript based chat client. Here are the links below: I am sure you can find a lot more on the web.
I hope any of them will make your task easier to complete.

Regards,
Zdravko
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
Rob Lauer
Telerik team
answered on 22 Aug 2014, 02:34 PM
Hi Sampath,

I just wanted to mention another option for you could be to use SignalR. We have a few blog posts that talk about just what you would like to do:

http://blogs.telerik.com/appbuilder/posts/13-10-16/real-time-reporting-with-signalr-kendo-ui-dataviz-and-icenium-part-1

You can also search for "blogs.telerik.com signalr" to get a full list of other posts.

Regards,
Rob Lauer
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
sampath
Top achievements
Rank 1
answered on 26 Aug 2014, 05:24 PM
I like candy chat but how do i add htaccess file will it load .files
0
Zdravko
Telerik team
answered on 29 Aug 2014, 10:42 AM
Hello Sampath,

 According to this thread such files are not accepted in Android, but I am not sure how reliable it can be. Maybe it would be best to test it if you have any server at hand. This way you could be sure that you have picked the right choice.

Regards,
Zdravko
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
sampath
Top achievements
Rank 1
answered on 29 Aug 2014, 05:55 PM
I have created chat application using socket mongodb using nodejs but when i upload  zip file to the appbuilder i'm getting error cant upload. how do i upload app developed in node js.
0
Kaloyan
Telerik team
answered on 03 Sep 2014, 01:08 PM
Hi sampath,

I am not sure what exactly you would like to upload into the AppBuilder project. Do you want to upload a mobile application that connects to your node.js server? or you want to upload the whole app developed under node.js? If it is the second, I am afraid this is not possible with AppBuilder. However, could you please send the above mention zip file in order to investigate it on our side? Also, any further details about what you are trying to achieve will help us to guide you further.

I am looking forward to your reply.

Regards,
Kaloyan
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
sampath
Top achievements
Rank 1
answered on 16 Sep 2014, 08:20 PM
Actually I want to upload the entire app build on node js, as it is not possible can i get any help how to get realtime chat functionality in my app. Its just a basic chat application built using node js with socket.io
0
Kaloyan
Telerik team
answered on 19 Sep 2014, 01:11 PM

Hello sampath,

In order to initialize the chat on mobile device, you will need to somehow connect to your node.js server and the app running on it. This can be achieved in couple of ways:
- Direct redirect to the page served by the node.js server.
- Connecting from your application, via the socket.io Client Api. Here is more about that.

Unfortunately, at this stage we do not have an example showing this functionality. However this is definitely something that we will consider for future AppBuilder releases.

I hope the above helps.

Regards,

Kaloyan
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
General Discussion
Asked by
sampath
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
sampath
Top achievements
Rank 1
Zdravko
Telerik team
Rob Lauer
Telerik team
Share this question
or