Communicate to Android App via Rails Server- send data from app to server? -


I have ruby ​​on one app running in which the telephone number is database I need to run the app on 5 different phones It is as if they get information from a railway server with a phone number (it is done after each other, not all phone numbers), after receiving the phone number, the app checks whether there is an existing call Or if there is no call, then he dials the number otherwise They call on the server busy "status sends back

I was thinking of ways to do it. I searched the part of its app: I start a new activity with call intent and get the proper permissions set out in my manifest file, I can also check the situation using the telephony manager.

But I am not able to understand the communication part. I first thought about a push notification that using GCM and then from my server about an independent TCP connection for my app I read in

My question is: Can not I clarify whether it is mandatory to use GCM or can I work around it with real-time communication? if so, how?

PS: As soon as the phone number is added to the DB on the server, a notification should be sent to me. in real time.

Edit 22/03/13:

So I tried GCM and made my Android app and rail server. I am able to send push notifications using 'GCM' gem in almost real time.

I need to know the response from the application section. I need to accept the number of calls / unsuccessful information along with the number. If I can, how can I do this on GCM?

I can not understand your question. Why can not you add numbers and call the ROR API and call for the status of successful / unsuccessful information.

If you want to add it to the database, it is good, if you want to add a notification on the web-based interface which is a separate story, use web sockets or socket IO

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -