L
L
littleguga2016-01-11 16:32:17
Programming
littleguga, 2016-01-11 16:32:17

How to link a mobile application and a browser program/extension on a computer?

There is an extension for chrome (and a standalone program in c # (that is, as a result, 2 separate entities that perform the same tasks)), which needs to send a specific command from the phone.
So far, this idea has come up for implementation:
On the phone in the application, a pair of id:password from the session on the computer is entered, the desired command is selected, it is sent with a pair of id:password to the server, and the extension keeps a socket connection with the server and waits for the command.
Maybe there is some other, more optimized way? (less load on the network / processor of the user's computer)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Karnaukhov, 2016-01-11
@littleguga

Let's start with the fact that "There is an extension for chrome (standalone program in c #)" Why if there are extensions for HTML5 + JS?
Chrome has GCM, technically done through an intermediate server.
The phone or browser sends a request to the server, and the server in turn makes a PUSH through GCM. You put a handler on the push and voila - when the push arrives you reply to it.
GCM is in the chrome API on JS, not sure what will be available to you via C#

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question