dev1303 / gtalksms

Automatically exported from code.google.com/p/gtalksms
0 stars 0 forks source link

Add tag to messages from GTalkSMS, maybe via XMPP IQ Stanzas, for dedicated (client/desktop) software controlling GTalkSMS #115

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have be planned some desktop notification application which use this 
wonderful Android APP.
During developing I noticed that is very hard to detect what message I receive 
from Android.

I proposed that every message what GTalkSMS send will be tagged of type tag.
SMS, Calls, Helps etc what there is availabe today is tagged with type tag, 
example all SMS related messages are tagged with "sms".
Tag is always written to begin of message.

Few examples about my idea:

User send message:"?"
GTalkSMS receive:"help:? Available commands:..."

User send message:"help:sms"
GTalkSMS receive:"help:sms Available commands:..."

Probably the easiest way to do this is copy user command from user message to 
android reply message

Actually notify messages are important in my case to detect

SMS from contact:
GTalkSMS send:"sms from <contact>: <message>" (actually this works like this 
already today)

User send message:"reply:<message>"
GTalkSMS send:"sms Sending SMS to <contact>: <message> "
GTalkSMS send:"sms <message> sent to <contact>"
GTalkSMS send:"sms delivered. SMS <message> to <contact>"

System level messages:
GtalkSMS send:"system:Battery level 100%"
GtalkSMS send:"system:Welcome to GTalkSMS v1.9.2 @ Yakoo. Send "?" for getting 
help"
GtalkSMS send:"system:GTalkSMS stopped."
GtalkSMS send:"system:<contact> is calling…"

What you think? This is draft about my idea and hopefully you also give your 
comment and ideas.

Best Regards,
Joni Räsänen

Original issue reported on code.google.com by rasan...@gmail.com on 4 Mar 2011 at 12:40

GoogleCodeExporter commented 8 years ago
An destkop counterpart for GTalkSMS is always welcome and I get your point. But 
I don't like the idea that the user also sees these tags AND this would break 
somewhat localisation.
2 basic approaches come to my mind:
- prefix the command send by the desktop app also with a tag, so that gtalksms 
knows it's not send from a user and thereby adds the appropriate tag in reply 
OR
- include some meta-information within the xmpp reply stanza which in unseen by 
the user but evaluable by the desktop app

Original comment by fschm...@gmail.com on 4 Mar 2011 at 1:58

GoogleCodeExporter commented 8 years ago

Original comment by fschm...@gmail.com on 4 Mar 2011 at 1:58

GoogleCodeExporter commented 8 years ago
I totally agree with you about showing tag to user.
I am not very familiar with xmpp, but if there is possible send 
meta-information it would be great solution.
Prefixing commands from desktop app is also ok, but it only can cover half of 
cases because those "notify" messages are send without user message like you 
know.
Let's keep our mind open and continue discussing

Original comment by rasan...@gmail.com on 4 Mar 2011 at 4:07

GoogleCodeExporter commented 8 years ago
Joni: Did you get my mail about the discussion on the gtalksms-dev group? (See: 
https://groups.google.com/d/msg/gtalksms-dev/zPZoHJumoXI/oWKw_2SApioJ )

Original comment by fschm...@gmail.com on 7 Mar 2011 at 7:43

GoogleCodeExporter commented 8 years ago

Original comment by fschm...@gmail.com on 26 Aug 2011 at 8:04

GoogleCodeExporter commented 8 years ago
I'm thinking about using the subject message field

Original comment by Florent....@gmail.com on 10 Jan 2012 at 11:14

GoogleCodeExporter commented 8 years ago

Original comment by fschm...@gmail.com on 26 Jan 2013 at 5:46