Integratig socket.io caht app in friends app

11 posts, 0 answers
  1. sampath
    sampath avatar
    9 posts
    Member since:
    Jul 2014

    Posted 11 Aug 2014 Link to this post

    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
  2. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 14 Aug 2014 Link to this post

    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.

     
  3. sampath
    sampath avatar
    9 posts
    Member since:
    Jul 2014

    Posted 19 Aug 2014 Link to this post

    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.
  4. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 22 Aug 2014 Link to this post

    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.

     
  5. Rob Lauer
    Admin
    Rob Lauer avatar
    18 posts

    Posted 22 Aug 2014 Link to this post

    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.

     
  6. sampath
    sampath avatar
    9 posts
    Member since:
    Jul 2014

    Posted 26 Aug 2014 Link to this post

    I like candy chat but how do i add htaccess file will it load .files
  7. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 29 Aug 2014 Link to this post

    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.

     
  8. sampath
    sampath avatar
    9 posts
    Member since:
    Jul 2014

    Posted 29 Aug 2014 Link to this post

    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.
  9. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 03 Sep 2014 Link to this post

    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.

     
  10. sampath
    sampath avatar
    9 posts
    Member since:
    Jul 2014

    Posted 16 Sep 2014 Link to this post

    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
  11. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 19 Sep 2014 Link to this post

    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.

     
Back to Top