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

Listener external service

1 Answer 35 Views
Apache Cordova
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andres
Top achievements
Rank 1
Andres asked on 14 Sep 2016, 09:51 PM

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?

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 19 Sep 2016, 12:13 PM

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.

Regards,
Martin
Telerik by Progress
 

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

 
Tags
Apache Cordova
Asked by
Andres
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or