Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I send a message directly to my app?

My app added a sharing contact and I enabled it. I can share a picture to my app, but I can't send a message to my app because the contact does not show up in the 'ok glass, send message to ...' list.

Is there some way to allow my app to be a 'real contact that I can send a message to? If not, what is the easiest way to send a message to my app?

like image 494
avh Avatar asked Apr 22 '13 01:04

avh


People also ask

What is the difference between a text message and a SMS message?

Short Message Service (SMS) & Text Messaging (Texting) are the same thing. It is a means of sending short messages to and from mobile phones. SMS was originally defined as part of the GSM series of standards in 1985 as a means of sending messages of up to 160 characters, to and from GSM mobile handsets.


1 Answers

Current Options

Through The API

You can create a timeline item and add a reply menu item to that timeline. You should be able to have your app fetch that timeline item after receiving a notification with the timeline ID. From that timeline ID you can fetch the attachments including the audio file and the transcription.

Here is an example of the body for the new timeline item:

{
 "text": "Hello world",
 "menuItems": [
   { "action": "REPLY" }]
}

To see an example response take a look at the Timeline Reference page.

A More Creative Approach

What you could do is create Twilio account to create a number that you can txt message to. You could then have your application interact with the body of the text message.

like image 128
DrewBaumann Avatar answered Sep 21 '22 01:09

DrewBaumann