Listener external service

Thread is closed for posting
2 posts, 0 answers
  1. Andres
    Andres avatar
    1 posts
    Member since:
    Sep 2016

    Posted 14 Sep 2016 Link to this post

    Hello everybody,

    I need that my cordova android app reacts to an external service, I mean, I want that my app be like listening to a petition. I am going to have a pc form made with java, and when the user on the pc submits the form, (almost) immediately another user on the tablet see the results.

    I was thinking on an interval ajax petition with javascript, but I don't think is the best way. Any advise?

  2. Martin
    Martin avatar
    104 posts

    Posted 19 Sep 2016 Link to this post

    Hi Andres,

    From the description you have provided you need something similar to real-time communication functionality. At the current stage Telerik Backend Services do not provide integrated support for real-time services.

    Still there is a workaround and as far as I can understand your scenario is very similar to a topic discussed in the forum here. The implementation for you case may include:

    Thus when the app is not running you will be able to notify the app user with a visual that there is something new and interesting on the server (which is the advantage of this approach). If the app is running, you will be able to handle this event and refresh your UI.

    Let me know if you need further information.

    Telerik by Progress

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

Back to Top