G
G
ghostku2015-10-19 01:02:11
Python
ghostku, 2015-10-19 01:02:11

How to write a service that would issue a message to the phone and receive a response to it?

I ask you not to kick for the title, but I could not formulate the task in one sentence.
I will write a service that provides some information and makes some decisions. But sometimes he cannot make decisions himself and you need to somehow send a request to my phone (Android) so that I give him an answer as soon as possible. For example:
"Dude, there is a football ticket for 10 bucks. Take it?
Answer options:
1) Yes, take it
2) No, don't take it
3) Go to a web page with a detailed description of the offer The
question is how to organize interaction with Android? My thoughts:
1) Write your apk for android, which communicates with my service. In fact, this option is the last one, because I don’t know how to write for Android and in the end it will sound like “Hire someone to write an app”
2) Pushbullet - I didn’t figure out if it was possible to make feedback in it. Actually, I just need a PushBullet that would display buttons for feedback
3) Write a bot for Slack or Telegram. Here, when you receive a message in the notification bar, you still have to go to the messenger and write something with your hands. Again, there will be no “Yes, take it” button.
As a result, you need to send a message to Android with two answer options, show it to the user in some annoying way, so that the user can immediately select an answer option in this message and send the answer to the server.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
wiygn, 2015-10-19
@wiygn

3) Write a bot for Slack or Telegram. Here, when you receive a message in the notification bar, you still have to go to the messenger and write something with your hands. Again, there will be no "Yes, take it" button

But after all, the telegram bot platform allows you to make your own custom keyboard for answering, where there will be Yes, No buttons. People on this even manage to write text dungeon crawlers.479eb031f85e41b89972dff862b6f575.png

I
Ivan, 2015-10-19
@LiguidCool

There is a push plugin for Cordova.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question