webOS Nation Forums
> Homebrew
> webOS patches
>
Patch Request: Auto SMS Forward or Reply
Title says it all - I'd love a patch or homebrew app to automatically forward sms messages to another number (ideally with the contact's name if known). The ability to auto-reply to the original sender might be nice too.
Background: I'm going to Europe for MWC next week and this darn CDMA phone won't be of any use to me. I can forward calls, but I can't forward texts.
Member:
063_xobx
at: 06:52 PM 02/10/2010
well devs and patchers you heard the chief give it a whirl
I ll pay $50 to whoever can make this happen. You must update it as Palm udpdated their operating system.
bump.
Guess it's kind of late, but I just saw this when you bumped it. I am looking into this. Getting the notifications was pretty easy to get working. I'm digging for the code to send a message without user-intervention, which is disabled for security reasons.
I'm curious...Would some thing like this work, or is this what's disabled?
[code] this.controller.serviceRequest('palm://com.palm.applicationManager', {
method: 'sendMessageFromCompose',
parameters: {
id: 'com.palm.app.messaging',
params: {
value: [FOWARD DEST HERE]
messageText: [POSSIBLE TXT HERE]
}
}
});[/code]
.
Originally Posted by xanthinealkaloid:
I'm curious...Would some thing like this work, or is this what's disabled?
[code] this.controller.serviceRequest('palm://com.palm.applicationManager', {
method: 'sendMessageFromCompose',
parameters: {
id: 'com.palm.app.messaging',
params: {
value: [FOWARD DEST HERE]
messageText: [POSSIBLE TXT HERE]
}
}
});[/code]
.
Thanks. The only documented APIs are the ones that require user intervention to send -- i.e. to open the compose window with a prepopulated message. I think your app name has to start with com.palm to access the direct send (not a problem for homebrew apps, but this will likely never make it into the catalog) to prevent SMS spam of your contacts. That led me to the right code in the messaging app, but so far I haven't had any success with it. I am getting an error message saying the "recipientJSONArray" is not found, but I know it is there. I confirmed in the java source for the luna messaging service that is the name it is looking for, and from what I can see, the format of my object is right, but it keeps throwing that same error. I'm trying to patch the messaging app to dump the contents of the object prior to sending...
After a *bunch* of banging my head on the desk and staring at the code in the messaging app, I finally figured it out. There are several hand-offs of the parameters, and just before calling the service, the code in messaging-luna-service.
js uses $H to create a hash of the parameters before passing them to the serviceRequest() function. After I added code to create the hash, the message was sent and added to the conversation history for the phone # I used.
If someone with more experience calling a java service or using hashes can provide some input on why that was needed, I would appreciate it.
For those wanting this, throw me some ideas of scenarios/features you think are important in addition to what Dieter stated in the first post. The first release will probably be a pretty basic but functional app, just to get some feedback.
As far as details, I have access to the sender's name if they are a contact, address (phone number, or email if sent to your
number@messaging.sprintpcs.com), summary (subject), message text, message type. I haven't looked into accessing attachments (no attachment id shows up in the JSON string), but I suspect I can get it it if necessary, but it does not seem like it would be preferred to forward MMS content which could be pretty large and potentially costly).
My sole use of this would be to forward every text message I get on my pre to another phone for when I am traveling or want to switch phones for a day. I would simply need:
- choosing the number for forward to
- have the forwarding include the sender's name from the address book if at all possible. At least it shield include the phone number.
Pretty simple, actually.
Member:
Garage91
at: 06:51 PM 04/11/2010
not quite what your asking, but get google voice. sms get delivered to any phone and are also backed up online.
Thanks for making me get off my butt and get this thing finished. I actually have a functioning app (and have for a while), but I need to work out a little kink. I think I am going to replace the forward # field with a contact picker, because that will get me the missing piece of information to resolve it. It seems reasonable to say the forward number should be a contact.
I would like to do a private beta test of what I've done so far. I'd like some feedback on the UI (no, don't just say it's ugly, real feedback

), because I have thought of a few different ways to do it, and want to know what others think. If you are interested in testing this app and giving some feedback, send me a PM with your email address and I will send you a copy of the ipk that you can install with webosqi.
Current features (that I can remember right now)
-Allows forwarding messages, replying to them, or both.
-If the incoming message is from a contact, forwarded message will include their name, otherwise it will be the address only (phone number or email address)
-For MMS messages, forwards only the sender's name or number and any text found
-Disallow forwarding messages to your device's phone number
-Do not reply to messages from your device's phone number
-Do not reply to messages from sms email gateway (i.e.
device@messaging.sprintpcs.com)
-Displays number of messages that have been forwarded since app was opened
-Allows manual entry of forward number or via selecting a contact using people picker
-Verifies that selected contact has a mobile number (automatically selects first mobile number for contact)
Known issues
- If forwarding to a number that is in your contacts, it is best to pick the contact entry, to ensure that forwarded messages go to conversation history for contact --
Resolved
- The same quirk applies to replies due to the fact that the incoming message does not contain the contact id for known contacts, so the reply does not go to their conversation history. It shows up as a separate conversation to that phone number. --
Resolved
I found the reverseLookup API the other day and started adding it, and tonight I made some time to get it functioning. That resolves the quirks with manually entering a forward number and sending a reply to existing contacts. I've tested it pretty thoroughly on the emulator, and verified that the lookup portion works on my Pre. Tomorrow I will do some more testing on my phone, and then I will send out the updated ipk.
<3 !! If you ever decide to put up a donation link, well, let's just say I might find a way to click it
Originally Posted by Dieter Bohn:
<3 !!
Um, that means you love the
app, right?
Originally Posted by Dieter Bohn:
If you ever decide to put up a donation link, well, let's just say I might find a way to click it 
I'll see if I can find my donate button... I have one somewhere.

(Do spam bots harvest donate links? Would it be best to put it in my signature? ) I found it.

It will have to wait though.. I would feel pretty weird putting a donate button in my sig when the app is only in a small beta test.
webOS Nation Forums
> Homebrew
> webOS patches
>
Patch Request: Auto SMS Forward or Reply