I've a web application and an android application. Now I want my web application to communicate with the mobile application when a specific event is triggered on the web application. How can I achieve this? We can communicate with web application from mobile app using web-services but I want Web Application to communicate with Android Application.
Asked
Active
Viewed 1,095 times
-4
-
https://github.com/socketio/socket.io-client-java – Mohammed Atif Apr 17 '17 at 10:15
-
Is there a way to build a resp api on android app, so my web app will request data to android app, is the inverse not app to server, is the server to app requests – Rafael Guimarães May 03 '19 at 18:04
-
We cannot build a Rest API on android app which server can access, but, you can implement the WebSocket on the backend and in your android application. Using websocket server can communicate with the mobile app. – Gaurav May 22 '19 at 11:05
1 Answers
0
What you can do is You can create web service and hit to server every 5 seconds to check if any response from server. its not that quick but you can achieve what you want.
refer this
-
Thanks ganesh101. This was the first thought came into my mind, but it will cause the battery to discharge. – Gaurav Apr 17 '17 at 10:43
-
Is there a way to build a resp api on android app, so my web app will request data to android app, is the inverse not app to server, is the server to app requests – Rafael Guimarães May 03 '19 at 18:04