|
10/23/2009, 04:21 PM
|
#1 (permalink)
|
|
Member
Join Date: Sep 2009
Location: Dirty Jrzy
Posts: 46
Thanks: 5
Thanked 0 Times in 0 Posts
|
Looking for longer SMS messaging vibration app
I thought I seen one somewhere, anyone recognize what I'm asking for...?
an app that when I get a text message, my phone will vibrate (if set on vibrate, sound off), longer than the 1/2 second it currently does?
Sorry, did a search on "vibrate" and nothing came up, just 5 threads, none of which answer my ?
|
|
|
10/24/2009, 09:28 PM
|
#2 (permalink)
|
|
Member
Join Date: Sep 2009
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
|
TXT Manager in homebrew makes it go up to 3 seconds. I'd like it to go up to 5 seconds as I still miss some texts.
|
|
|
10/27/2009, 01:09 AM
|
#3 (permalink)
|
|
Member
Join Date: Jun 2009
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
|
When the phone first came out there were a few posts about it. I got my phone to vibrate much longer by editing some of the code in what I believe was the file /usr/palm/applications/com.palm.app/messaging/app/controllers/notification-assistant.js
I haven't messed with it since the last couple patches, and don't have my programs available at the moment to go editing. I'll try in about an hour to see if it's still working if you don't want to test things yourself.
The post I originally made about increasing vibrate time was here: http://forums.precentral.net/web-os-...ml#post1688906
|
|
|
10/27/2009, 02:47 AM
|
#4 (permalink)
|
|
Member
Join Date: Jun 2009
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
|
So, yeah, if you feel comfortable editing files on the pre at all, here's the way to do it:
Open file /usr/palm/applications/com.palm.app.messaging/app/controllers/notification-assistant.js
Lines 147-148 say
Code:
if (notificationData.keys().length > 0 && this.Messaging.messagingPrefs.enableNotification) {
var notificationType = notificationData.get('notificationType');
Directly after that, add the lines
Code:
this.serviceRequest = new Mojo.Service.Request("palm://com.palm.vibrate", {
method: 'vibrate', parameters: { 'period': 0,'duration': 3000 }
The duration will be the number of seconds you want the vibrate to last. 3000 = 3 seconds.
Reboot and that's it.
|
|
|
10/30/2009, 05:53 AM
|
#5 (permalink)
|
|
Member
Join Date: Jul 2006
Posts: 26
Thanks: 1
Thanked 2 Times in 2 Posts
|
i tried this however, it doesn't work because it appears com.palm.vibrate no longer exists. how can we still call the vibrate function if using the latest and great webOS 1.2.1?
Quote:
Originally Posted by websterguy
So, yeah, if you feel comfortable editing files on the pre at all, here's the way to do it:
Open file /usr/palm/applications/com.palm.app.messaging/app/controllers/notification-assistant.js
Lines 147-148 say
Code:
if (notificationData.keys().length > 0 && this.Messaging.messagingPrefs.enableNotification) {
var notificationType = notificationData.get('notificationType');
Directly after that, add the lines
Code:
this.serviceRequest = new Mojo.Service.Request("palm://com.palm.vibrate", {
method: 'vibrate', parameters: { 'period': 0,'duration': 3000 }
The duration will be the number of seconds you want the vibrate to last. 3000 = 3 seconds.
Reboot and that's it.
|
|
|
|
10/30/2009, 06:11 AM
|
#6 (permalink)
|
|
Member
Join Date: Apr 2003
Location: Boston-area
Posts: 4,496
Thanks: 232
Thanked 628 Times in 356 Posts
|
You're missing a few brackets and parentheses there, but otherwise the same code is working in a few patches I've made for other things. It's been said that directly accessing that might only work in com.palm.app programs, but shouldn't be an issue for messaging.
In other applications I believe you're stuck with the default vibrate length via something similar to:
Code:
Mojo.Controller.getAppController().playSoundNotification("vibrate", "")
|
|
|
10/30/2009, 06:13 AM
|
#7 (permalink)
|
|
Member
Join Date: Oct 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
Building a Prebrator are we?
|
|
|
10/30/2009, 06:37 AM
|
#8 (permalink)
|
|
Member
Join Date: Jul 2006
Posts: 26
Thanks: 1
Thanked 2 Times in 2 Posts
|
ah....got it. thanks for looking out. after the modifications, it works as advertised! this should really be just a setting in the preferences anyway. for those who want to give it a go, here's the correct code:
this.serviceRequest = new Mojo.Service.Request("palm://com.palm.vibrate", {
method: 'vibrate', parameters: { 'period': 0,'duration': 3000 }
});
modify the duration to your preference. a couple of things to note is that after inserting this into the code, the default vibration also occurs and when the switch is set to ringer, it will vibrate for the set duration AND play the message tone. is there a way just to get the vibrate longer when the switch is off?? i don't need it to vibrate for 3 seconds while i sleep AND play a tone.
Quote:
Originally Posted by jhoff80
You're missing a few brackets and parentheses there, but otherwise the same code is working in a few patches I've made for other things. It's been said that directly accessing that might only work in com.palm.app programs, but shouldn't be an issue for messaging.
In other applications I believe you're stuck with the default vibrate length via something similar to:
Code:
Mojo.Controller.getAppController().playSoundNotification("vibrate", "")
|
Last edited by fishheads; 10/30/2009 at 06:48 AM.
|
|
|
10/30/2009, 09:25 AM
|
#9 (permalink)
|
|
Member
Join Date: Jul 2009
Posts: 125
Thanks: 7
Thanked 23 Times in 14 Posts
|
I would LOVE to see this as a patch for Preware (maybe it could prompt you for the duration value of your choosing during installtion).
Anyone else agree?
|
|
|
10/31/2009, 07:48 PM
|
#10 (permalink)
|
|
Member
Join Date: Sep 2009
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
|
Quote:
Originally Posted by Habious
I would LOVE to see this as a patch for Preware (maybe it could prompt you for the duration value of your choosing during installtion).
Anyone else agree?
|
I would like to see this too! I'm hestitant to change code on mine...I'm not that saavy:-(
|
|
|
11/02/2009, 03:37 PM
|
#11 (permalink)
|
|
Member
Join Date: Sep 2009
Location: Miami, FL
Posts: 72
Thanks: 27
Thanked 4 Times in 4 Posts
|
Great fix. Can this be done for emails?
|
|
|
11/04/2009, 09:53 PM
|
#12 (permalink)
|
|
Member
Join Date: Sep 2009
Location: Miami, FL
Posts: 72
Thanks: 27
Thanked 4 Times in 4 Posts
|
Error with messaging notification extended vibration file
i applied this modification, and suddenly my messaging stopped working altogether. I would tap the icon, and the bright white light would come on, and nothing.
I returned the original file, and it works fine. Can you take a look at it to see what I screwed up?
|
|
|
11/08/2009, 02:03 AM
|
#13 (permalink)
|
|
Member
Join Date: Jul 2006
Posts: 26
Thanks: 1
Thanked 2 Times in 2 Posts
|
You're missing the closing brackets and parentheses:
if (notificationData.keys().length > 0 && this.Messaging.messagingPrefs.enableNotification) {
//BEGIN MODIFICATION
this.serviceRequest = new Mojo.Service.Request("palm://com.palm.vibrate", {
method: 'vibrate', parameters: { 'period': 0,'duration': 2000 }
});
//END MODIFICATION
var notificationType = notificationData.get('notificationType');
if (notificationType == this.Messaging.notificationTypes.newMessage) {
If someone is able to find out exactly where the duration of the factory installed vibrate file is, I think this would solve all our problems. Again, the way this hack operates is that it will add this extra long vibrate to the default sound (or when the switch is set to vibrate) the default vibrate. This isn't something I want disturbing me in the middle of the night. I get random texts from friends at all hours, so this modification won't work for me, and probably most others.
Quote:
Originally Posted by NABRIL15
i applied this modification, and suddenly my messaging stopped working altogether. I would tap the icon, and the bright white light would come on, and nothing.
I returned the original file, and it works fine. Can you take a look at it to see what I screwed up?
|
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
All times are GMT -4. The time now is 06:52 PM.
|
|