Hi there,need a recomendation for a software handeling wifi. - General Topics

i need a software that would turn the wifi on and off in a cycle of every few minutes and would be on for a short while .
is there any wifi manager that can do that?
i want it to check for mail updates every 10 minutes for a duration of 2 minutes each time.
thanks

dreamers said:
i need a software that would turn the wifi on and off in a cycle of every few minutes and would be on for a short while .
is there any wifi manager that can do that?
i want it to check for mail updates every 10 minutes for a duration of 2 minutes each time.
thanks
Click to expand...
Click to collapse
you could use PhoneAlarm: you can create a profile with wifi activated and a profile with wifi deactivated. Then you can organize your profiles to be activated at certain moments, and you can launch a command when switchin profiles (eg mail app). So, this way it possible, and you can do a lot more with phonealarm. probably some other methods exist, eg by creating a script with mortscript. this can launch specifi commands etc.

Related

Data Auto Disconnect

I'm sure this is a noob question, but I can't find the answer on the forum.
I've seen a couple people reference automatically ending the data connections when they're idle. Can someone explain how this is done?
Is the desire to disconnect the data to save on battery life? Just curious. Thanks.
That's the main reason I want to do it...not sure about others...
I figured out two ways to do this for anyone else that's interested.
1) Using Advanced Config Tool (V3.3): Menu > More Settings > Connections. Check "Disconnect After" and set the timeout you want. This seems to work well for activesync connections (my mail is set to recieve every 5 min), but doesn't always work for on demand connections (Internet).
2) Comm Manager Pro. No instructions for this since I'm not using it (yet). But everything I've read looks like it does it.
Like I mentioned, I've got my email configured to sync every 5 minutes and I have a connection timeout of 30 seconds set in Advanced Config. This setup has drastically improved my battery life. Before this change, I got maybe 12 hours on a good day. With this timeout set, I could probably get 2 solid days. The only thing I haven't figured out is if the timeout is and idle timeout or an overall timeout. What I mean, is will the connection end after 30 seconds even if it's in use?
I'm interested in this as well, it would be even better if outlook or msn live would make a connection and disconnect after synchronizing.
I've been looking for the same solution. So far using advanced config settings will force disconnect no matter if it was idle or not. I'm looking for a solution to disconnect only when idle.
As of proof, set auto disconnect to 1 minute and using latest skype v3.0 start transferring a large file. After 1 minute data connection will be forcibly disconnected.
Any solutions for this?
Thank you.
Can someone help me find the timing setting in Advanced Config? I've looked through everything - using Energy 3.0 Rom (WM6.5) and don't see anything related to data disconnect other than under "Data Connections:" "GPRS disconnect:" and my settings are "Enable button and timer"
I don't see where the timer comes into play; don't really care if the connection gets cut off - I'd rather see a battery life improvement.....
I'm an absolute idiot. I just skimmed through the thread and didn't read the post above... *smacks forehead*
Its been posted in this very topic, and its only 5 replies long
xawen said:
I figured out two ways to do this for anyone else that's interested.
1) Using Advanced Config Tool (V3.3): Menu > More Settings > Connections. Check "Disconnect After" and set the timeout you want. This seems to work well for activesync connections (my mail is set to recieve every 5 min), but doesn't always work for on demand connections (Internet).
2) Comm Manager Pro. No instructions for this since I'm not using it (yet). But everything I've read looks like it does it.
Like I mentioned, I've got my email configured to sync every 5 minutes and I have a connection timeout of 30 seconds set in Advanced Config. This setup has drastically improved my battery life. Before this change, I got maybe 12 hours on a good day. With this timeout set, I could probably get 2 solid days. The only thing I haven't figured out is if the timeout is and idle timeout or an overall timeout. What I mean, is will the connection end after 30 seconds even if it's in use?
Click to expand...
Click to collapse
In advanced config the settings you are looking are not located in the list on first screen, the are in separate menu as described above.
And now I'll quote myself so my question will not get burred:
[email protected] said:
I've been looking for the same solution. So far using advanced config settings will force disconnect no matter if it was idle or not. I'm looking for a solution to disconnect only when idle.
As of proof, set auto disconnect to 1 minute and using latest skype v3.0 start transferring a large file. After 1 minute data connection will be forcibly disconnected.
Any solutions for this?
Thank you.
Click to expand...
Click to collapse
guys, found this
http://www.andrewsayshello.com/windows-mobile/auto-disconnecting-idle-data-connections-in-wm6/
hope this helps in some way
Thanks for the link, unfortunately it still disconnects even if data connection is in use.
WMLongLife can do this for you.
About the registry tweak that does this, I must warn you: it disables the ability to do voice and data simultaneously.
Chainfire said:
WMLongLife can do this for you.
Click to expand...
Click to collapse
Just checked WMLongLife and it seems that program does not quiet work if one doesn't use opera or wifirouter...
Chainfire said:
About the registry tweak that does this, I must warn you: it disables the ability to do voice and data simultaneously.
Click to expand...
Click to collapse
This is new for me...I thought that data connection cannot co-exist with phone call, period..
[email protected] said:
Just checked WMLongLife and it seems that program does not quiet work if one doesn't use opera or wifirouter...
Click to expand...
Click to collapse
Yes it does require a certain way of using your phone (current test version has specific settings - you can change this in next version). Just saying.
This is new for me...I thought that data connection cannot co-exist with phone call, period..
Click to expand...
Click to collapse
Yes it can, but it depends on several factors. Under ideal (and never actually occuring) conditions it can be done with 2G GSM (GPRS/EDGE). Normally, however, either GPRS/EDGE connection suspends ('pauses') during voice call, or with 2G CDMA voice call may not work at all while data connection active (depends on exact 2G CDMA network type).
With 3G GSM (UMTS/HSPA) it is quite possible (and normal) to do data and voice simultaneously, however for some reason the auto data disconnect registry tweak breaks it. I'm not quite sure why, but it does.
3G CDMA (EV-DO) behaves the same as 2G GSM with regards to simultaneous voice and data (data drops), however, EV-DO Rev. A behaves the same as 3G GSM (possible but broken by registry tweak)
Aside from this, it is also needed that your provider/network has the correct hardware to handle this. I'm not sure how common it is for this properly operating on EV-DO Rev. A, but for UMTS/HSPA early tower equipment was bugged and did not allow this. In Europe, most UMTS/HSPA towers have since been upgraded to allow simultaneous voice and data (and HTC handsets support this perfectly), but how this is in the USA I cannot say.
Hope that explains it (it is a bit messy explenation I know)
if this dowsn't work then i have no ideea what will )
http://forum.xda-developers.com/showthread.php?t=484084
tell me if worked for you
!!!!!
I had it set to disconnect (via Diamond Tweak software) after 1 minute of activity. I did this to preserve battery life, BUT BUT BUT
With 3g on, and even with 3g disabled all day and edge on, the battery still died in 8, 12 hours (3g, edge) with the connection disabling. i use the phone for a good number of calls, text, and some data every day.
AFTER i reenabled it to NOT disconnect after every 1 minute, i pulled over 24 hours on a SINGLE charge.
am i the only one that's experienced this??

How to get mail for WinMo over WiFi without constant connection

I am not sure if this has been discussed before but searching didn't help much as I am not sure what keyword to use.
I have a Fuze (Touch Pro) without the data service and would like the phone to periodically get the mails over WiFi. I am posting it here assuming this would apply to all WinMo devices. If not, please enlighten me.
In default settings, the phone disconnects WiFi as soon as it goes to sleep. I used Advanced Config to enable WiFi even in sleep, but now it stays connected all the time even though Pocket Outlook is configured to run every 15 minutes. For last several months it has been working this way but it drains the battery very quickly unlike my iPhone, which lasts the more than a day because it connects only to check mails when inactive.
I know with 3G service I don't have worry about it but wondering if there is any utility or setting in registry that would connect periodically for a minute or two so that PO can check for new messages.
Thanks.
How to update at intervals
generally there is an option in the email program you are using. check these options
powersupplyzzzz said:
generally there is an option in the email program you are using. check these options
Click to expand...
Click to collapse
Thanks powersupplyzzzz. The interval is already configured in ActiveSync/Pocket Outlook, but it doesn't connect to the WiFi unless it's already connected. Does it work for others? I mean does it connect to WiFi automatically when ActiveSync is ready to sync?
Wondering if I posted in the wrong forum or I am asking for something not possible on WM at the moment ...
rexian said:
Thanks powersupplyzzzz. The interval is already configured in ActiveSync/Pocket Outlook, but it doesn't connect to the WiFi unless it's already connected. Does it work for others? I mean does it connect to WiFi automatically when ActiveSync is ready to sync?
Click to expand...
Click to collapse
AFAIK what you are asking is not possible, unless you ask someone to write you a script or there is an app that does this, but i havent come across one.
Thanks timmymarsh, this is what I was afraid of. I guess the old iPhone still has some use for this advantage.
rexian said:
Thanks timmymarsh, this is what I was afraid of. I guess the old iPhone still has some use for this advantage.
Click to expand...
Click to collapse
What you need is a car battery that you can strap to your back which will boost your battery when required
I'll have a fish around for a real solution.

[REQ] BT/WiFi interval service - Will Pay

I would be willing to pay for the following app/service.
It would allow for an interval to be set from 10 minutes to 30 minutes (or whatever). During that time it does the following...
Let me explain this by just focusing on WiFi, as Bluetooth functionality would be the same functionality-wise.
At the ste interval time, the service will check the status of WiFi.
- If Off, it turns it on long enough to see if any networks autoconnect
- If network connects, then WiFi stays on as long as netowrk connection exists
- If On, it checks to see if network is connected
- If network not connected, it turns WiFi off
This way a user can save battery life by not having these services on all the time, nor shutting them on/off manually and having to remember to do it when getting in their car or office, etc..
NOTE: When the interval is hit and WiFi or BT needs to be turned on, it needs to wait a minute (or whatever time is necessary - this might be user configurable to account for differences between phones) to see if connects.
Can anyone work on such a project? I am sure you could put this in the market and have many people pay for it. It would allow for incredible battery saving and allowing for automated WiFi/BT switching.
Ceger
I'm playing around with this, I'll let you know if I come up with anything viable.
For anyone needing an application that fulfills these requirements, a beta version of the app I wrote for Ceger is now on the market:
http://www.appbrain.com/app/wireless-sentry-lite-beta/com.asd.wirelesssentry
I welcome any comments/reviews!
Scott
Sweet ill take a look at this thanks
Sent from my PC36100 using XDA App
Works great so far. I don't use the blue toothe, but the wifi part works great.
Sent from my PC36100 using XDA App

[Q] Tasker profiles?

Not being of mathematical mind im having trouble understanding the settings in a tasker profile i want to create.
What i need is a rule that would
a) switch on wifi when the screen is switched on
b) switch off wifi 2 minutes after screen turns off
Help would be appreciated!
android does that automatically. when the screen is of wifi goes to sleep after a certain timeout (you can change that timeout using OCLF)
Tasker meh!
I brought Tasker with nearly the same enthusiasm as I had when I got my Android phone. I couldn't wait to start making it my personal butler, alas this wasn't the case.
Yes I maybe I'm a retard and I'm sure I'm going to burn in forum flames of hell, and I'm sure the developer has worked very hard on this and he/she should be congratulated as I would never be able to do what they have done. That aside I'm a paying customer so I am entitled to my opinion. Unless we have all turned into Apple pricks
I'm really disappointed with how poor this is. I feel the UI is very unintuitive, cheap and kind of ugly, I have no idea how to use it and haven't the time or patience to sit in for a week to learn how to. Even the website is the same tatty thing that I saw back in the early part of the year.
I feel a great improvement would be that I could just scroll through all the different pre-made tasks and profiles (in the app not a broswer) created by Joe public and approved by the developer and with a tap of a finger and bit of personalizing, bob is your uncle! away we go!
Just my penny as being a very satisfied customer.
I find it very useful, and not very difficult to understand.
It is simply a tool that will trigger an (set of) action(s) on a set (combination of) event(s), nothing more, nothing less, make it as complex as you want.
@ftgg99, if ou take a look at the tasker website, especially the Wiki, there are enough examples.
I am using tasker now for awhile, and have been able to setup a lot of useful profiles, like
- Auto switch on/off Wifi when i am near my home (based on Cell tower location)
- Auto switch off Wifi after 10 min of a lost connection
- Auto switch off Wifi 10 min after being switched on and no connection was made
- Start skype when wifi is connected, logout skype on wifi disconnect
- Have a incoming SMS read aloud when phone is connected to carkit
- Auto mute between 23:00 and 06:00 except for favourite contacts
- Auto mute when in a meeting
- Disable Auto rotate for certain apps (Ebook reading in bed is annoying otherwise)
- Auto Enable GPS for specific apps and disable afterwards
- Auto switch on Bluetooth when WiFi connection lost (probably going to my car)
- Auto switch off Bluetooth after 10 min of a lost connection
- Auto switch off Bluetooth 10 min after being switched on and no connection was made
stinkypete said:
I brought Tasker with nearly the same enthusiasm as I had when I got my Android phone. I couldn't wait to start making it my personal butler, alas this wasn't the case.
Yes I maybe I'm a retard and I'm sure I'm going to burn in forum flames of hell, and I'm sure the developer has worked very hard on this and he/she should be congratulated as I would never be able to do what they have done. That aside I'm a paying customer so I am entitled to my opinion. Unless we have all turned into Apple pricks
I'm really disappointed with how poor this is. I feel the UI is very unintuitive, cheap and kind of ugly, I have no idea how to use it and haven't the time or patience to sit in for a week to learn how to. Even the website is the same tatty thing that I saw back in the early part of the year.
I feel a great improvement would be that I could just scroll through all the different pre-made tasks and profiles (in the app not a broswer) created by Joe public and approved by the developer and with a tap of a finger and bit of personalizing, bob is your uncle! away we go!
Click to expand...
Click to collapse
When I first bought Tasker, I felt the same way. The UI felt difficult to understand and I couldn't really get it to do what I wanted. Every few weeks, I would redownload it and give it another try, then quickly give up. At some point, it started to make sense and I figured out how it all works.
Yes, Tasker has a large learning curve and the UI needs work, but the time it took to figure it out has been so well worth it.
stinkypete said:
<snip>
I feel a great improvement would be that I could just scroll through all the different pre-made tasks and profiles (in the app not a broswer) created by Joe public and approved by the developer and with a tap of a finger and bit of personalizing, bob is your uncle! away we go!
Click to expand...
Click to collapse
Part of the attraction of Tasker for me is that it's not centred around loading and personalising profiles from a public 'bank'. Yes there are profiles that people have shared, both on the Tasker website and in numerous threads on various forums. I treated these as learning examples, 'tutorials', and used them to gain an understanding of how to start writing my own profiles.
I've had Tasker about 3 / 4 months and have written approximately 15 profiles that have significantly changed how I interact with my N1, and how it interacts with my environment. These range from the very simple (reduce media volume when a wired headset is plugged in), to the horrendously complicated (workaround an issue with my bluetooth connection to my car kit).
I doubt whether I would have bothered to experiment to this extent if the focus had been on loading up and personalising publicised profiles.
I agree that the UI is perhaps less polished than other apps, however at most I would suggest that the dev has concentrated first on function over form. As a software developer who cut his teeth on mainframe COBOL I approve of that, particularly given the number of pretty but buggy apps on the market. Personally I care more about Tasker working correctly - I don't want my phone to ring during meetings if it's set not to - than looking pretty, as (in between tweaking profiles) I don't really see the app itself.
Sorry it took a while to read these replies!
Anywho, i now have had a different idea - tasker should switch on wifi, check if a known network exists and if it does connect. If not it should switch wifi off.
ftgg99 said:
tasker should switch on wifi, check if a known network exists and if it does connect. If not it should switch wifi off.
Click to expand...
Click to collapse
Which is exactly what the WiFi Near Profile does,
with the time interval for each check being possible to set to your own liking.
However, you adding additional restrictions based on the cell-near could save some useless scanning. Usually Wifi Access points have a fairly static location don't they, so why do a WiFi Near scan if you are not at your home/work/collage anyway.
daoth said:
- Start skype when wifi is connected, logout skype on wifi disconnect
Click to expand...
Click to collapse
How did you achieve the logout on wifi disconnect? I can't get Tasker to kill apps, which is said to be a common problem under the latest FroYo stock ROMs (at least for my Desire HD)
I don't have root access btw, since that requires me to downgrade my ROM first, which would cause me to loose my warranty...
daoth said:
Just my penny as being a very satisfied customer.
I find it very useful, and not very difficult to understand.
It is simply a tool that will trigger an (set of) action(s) on a set (combination of) event(s), nothing more, nothing less, make it as complex as you want.
@ftgg99, if ou take a look at the tasker website, especially the Wiki, there are enough examples.
I am using tasker now for awhile, and have been able to setup a lot of useful profiles, like
- Auto switch on/off Wifi when i am near my home (based on Cell tower location)
- Auto switch off Wifi after 10 min of a lost connection
- Auto switch off Wifi 10 min after being switched on and no connection was made
- Start skype when wifi is connected, logout skype on wifi disconnect
- Have a incoming SMS read aloud when phone is connected to carkit
- Auto mute between 23:00 and 06:00 except for favourite contacts
- Auto mute when in a meeting
- Disable Auto rotate for certain apps (Ebook reading in bed is annoying otherwise)
- Auto Enable GPS for specific apps and disable afterwards
- Auto switch on Bluetooth when WiFi connection lost (probably going to my car)
- Auto switch off Bluetooth after 10 min of a lost connection
- Auto switch off Bluetooth 10 min after being switched on and no connection was made
Click to expand...
Click to collapse
How did you get wifi to switch off when its not connected to any network, occasional i leave the house and i forget to switch wifi off. I tried location based wifi off but it wont be as fast or accurate as switching off wifi when theirs no connection after lets say 1-2 minutes. I considered getting another app to do this after i tried to get it to work with tasker, but i have enough apps running in the background.
Do any of you leave gps turned on always so that tasker works better with locations? for me with just network location it can take some time to update and to turn on a profile.
arielc said:
Do any of you leave gps turned on always so that tasker works better with locations? for me with just network location it can take some time to update and to turn on a profile.
Click to expand...
Click to collapse
That may be linked to timings of background context checks when the screen is off.
Personally I always leave GPS on, but only use Net location / Cell IDs for my Tasker location contexts.
If anyone wants any ideas on Tasker profiles or want to know how to do something just go to my blog at http://dbilliter.blogspot.com. I update it regularly and will continue to try and improve the Profiles.
dbilliter said:
If anyone wants any ideas on Tasker profiles or want to know how to do something just go to my blog at http://dbilliter.blogspot.com. I update it regularly and will continue to try and improve the Profiles.
Click to expand...
Click to collapse
Thanks for the work...
The tasker website have some codes
http://tasker.wikidot.com/step-throughs
People please post more codes... would love to see more
drgopoos said:
Thanks for the work...
The tasker website have some codes
http://tasker.wikidot.com/step-throughs
People please post more codes... would love to see more
Click to expand...
Click to collapse
I am posting one everyday this week and I think I have a couple more. I will post even more whenever I either come up with new ideas or someone gives me a new idea.
Ok, I have a very basic understanding of tasker. I actually was able to make my gps app turn on the gps when being executed. I only added gps off exit task after reading the wiki. However, I'm trying to find a way to do the following:
when selecting pandora icon (I say icon, as I may need a pointer to the actual app)
verify wifi connection status - if connected, then load pandora app; if not connected, kill pandora app (might be redundant but just in case)
I also need to create a general wifi connection status, such that if connection is lost, kill specific running apps (such as pandora; could add more later)
I tend to fall asleep using headphones and pandora. I'd REALLY hate to find out that my cable/wifi went down while asleep and I've just been listening to pandora using cell data for several hours.
Now, making a profile to turn on wifi is easy enough, but not sure how to do the above. I'd imagine it'd be something like:
If [pandora app] initiated
wifi_connected = 1 (or yes or whatever)
then load [pandora app]
any help would be appreciated
EDIT: Nevermind. Though knowing more about how variables are used in TASKER would be interesting (I'll play around with them some more), I found out that with wifi ON, cell data usage is cut off. I disconnected my cable connection and with wifi still on, I couldn't connect to anything. So worry was unfounded, it turns out.
dbilliter said:
If anyone wants any ideas on Tasker profiles or want to know how to do something just go to my blog at http://dbilliter.blogspot.com. I update it regularly and will continue to try and improve the Profiles.
Click to expand...
Click to collapse
thanks once again.. am testing out a few of them
drgopoos said:
thanks once again.. am testing out a few of them
Click to expand...
Click to collapse
No problem. It is a hobby for me. I love doing it so I thought I would create a blog with the focus on Tasker to help people along. I know there are a number of other sites but I have been trying to make mine as basic as possible so that anyone could figure it out.
Some actual description of what the tasker profiles do would be very helpful... also less tit shots so that I don't catch crap for looking at the site from work would be nice.
dbilliter said:
No problem. It is a hobby for me. I love doing it so I thought I would create a blog with the focus on Tasker to help people along. I know there are a number of other sites but I have been trying to make mine as basic as possible so that anyone could figure it out.
Click to expand...
Click to collapse
I was trying to make 2 profiles
Profile 1 - I have set up a profile so that when i plug in a headphone with no mic ( and no mic in options ) , it opens the music app
Profile 2 - i have also set up another profile , when i plug in a Headset with mic ( and mic in options) , it opens the dialer.
However when i plug in the headset it opens both the Dialer and music app . Is there a way to prevent the music app from opening.
drgopoos said:
I was trying to make 2 profiles
Profile 1 - I have set up a profile so that when i plug in a headphone with no mic ( and no mic in options ) , it opens the music app
Profile 2 - i have also set up another profile , when i plug in a Headset with mic ( and mic in options) , it opens the dialer.
However when i plug in the headset it opens both the Dialer and music app . Is there a way to prevent the music app from opening.
Click to expand...
Click to collapse
Sorry for the delay. I don't know of a way personally. I can only work with what I got and I don't have a headset with a mic so I have no way of testing. One option you could do though is have a menu pop up and ask you which you want.

[APP][4.1+][FREE][10-SEP-2016] Push Notifications Fixer No-Root v2.5

FEATURED by Whatsapp Support Page
Hi everyone,
Are you experiencing delayed push notifications from GTalk/Hangouts, GMail, Whatsapp (partial fix), Facebook, Play Store web install, etc? If so, then this app its for you!!
It's FREE! No banners. No ads. Please consider donating to the developer (link in the app).
This app work for EVERY phone. ROOT is NOT required
Root version here: http://forum.xda-developers.com/showthread.php?t=2142503
This app basically keep alive the push connection on your phone. It avoid the tcp connection timeout that can occurs on some wifi routers or on some mobile carriers.
You will always receive instantly push notifications.
● Why were my notifications delayed in the first place?
Apps using Google's push service (Hangouts, Gmail, Facebook Messenger, e.g.) connect your phone to Google’s servers via one TCP connection (on port 5228).
To keep this connection alive, Android uses a periodic heartbeat to prevent the connection from timing out. By default, this heartbeat occurs every 15 minutes on wifi and every 28 minutes on a mobile data connection.
This is problematic because most Wi-Fi routers and mobile carriers will automatically terminate this connection after a short time of inactivity.
Because your phone is not aware that this connection was externally closed, you will not receive push notifications until this connection is reestablished when the next heartbeat is sent.
● How does PNF solve this problem?
Every x minutes it invoke an android activity that will send an heartbeat network packet on the push connection. Sending an heartbeat every 5 minutes should be enough to always keep the connection alive and all your push notifications will be instantly.
The battery should not be much impacted over a day.
Download here: PLAY STORE LINK (or get the attached APK in case not available on your country for some reason)
Please, if the are problems don't rate bad, send me an email ( [email protected] ) or post the problem in this thread and I'll answer you as soon as possible.
Feedback are welcome!
Changelog:
See post Number 2
FAQ:
See post Number 3
Report to google here: https://productforums.google.com/fo...onnecting-to-networks-and-devices/fslYqYrULto
Download it from play store to receive future app updates
Changelog:
Version 2.5, 2016/09/10:
- Small update. Soon new things!
Version 2.0, 2015/06/30:
- Fix PNF auto-startup after phone reboot
Version 1.5, 2015/01/04:
- Material design for android lollipop
Version 1.1, 2014/03/06:
- Fix app not autostart at network changes on some phone
- The app start at phone boot itself, no need to start it or do anything
Version 1.0, 2013/11/05 :
- First release
FAQ
Q: Does this app drain battery in background? Does lowering the heartbeat interval too much cause more battery drain?
A: It should have not a big impact on the battery during your daily use. I recommend hearbeat set to 5 minutes, it should be enough to make you receive instantly notifications.
Q: What does mean "set the heartbeat to x minutes" ?
A: It means only that android will send a network packet over the push connection every x minutes instead of the default 15/28 minutes to keep alive that connection. It does NOT mean that you receive push notification every x minutes. Notifications are instantly if the push connection is alive.
Q: Why Whatsapp messages are still delayed sometimes?
A: Whatsapp, and some others apps, don't completely rely on google push service (GCM). Those apps start their own connection when you open the application, and the messages come through this connection. The heartbeat is sent by android only on the push connection on the port 5228, and so it only keep-alive that particular connection. Blame those apps that doesn't have a keep-alive mechanism for their connection or that doesn't use full push messaging.
A workaround for whatsapp is to swipe it away from the recent apps when your finished a chat session. In this way it's connection is dropped and you will be notified of new messages through google push notifications.
I start seeing some download, but few stars.. Come on show your gratification with 5 stars
Inviato dal mio Galaxy Nexus utilizzando Tapatalk
How?
Hi, Im using your application, the root one.
But I'm interested in how this one works.
I recently developed an app that use GCM to send messages between devices.
If you can answer me... How do you send the heartbeat through an Activity? This can help a lot of people since Google don't do anything.
Thank you
Hitsbam said:
Hi, Im using your application, the root one.
But I'm interested in how this one works.
I recently developed an app that use GCM to send messages between devices.
If you can answer me... How do you send the heartbeat through an Activity? This can help a lot of people since Google don't do anything.
Thank you
Click to expand...
Click to collapse
Basically to trigger an heartbeat you only need those 2 lines (those are undocumented, I it discovered by decompiling GSF):
Code:
context.sendBroadcast(new Intent("com.google.android.intent.action.GTALK_HEARTBEAT"));
context.sendBroadcast(new Intent("com.google.android.intent.action.MCS_HEARTBEAT"));
where context is the application context.
Those intents will be "catched" by GoogleServicesFramework (GSF) that will physically send the heartbeat packet to the google servers. If an aswer come back instantly the push connection is alive, otherwise if in 60 seconds there is no answer back, GSF will initiate a new push connection without to wait the next heartbeat.
The first intent is for Ice Cream Sandwhich and below "I think", while the second one is used in new android versions, should depend from the GSF version installed..But you can safety fire both, since one of the two won't just do anything.
Not sure if it is a good practice to place it inside an application, since if every developer will do that the battery will be killed. Maybe you can invoke that only in some situations.
andQlimax said:
Basically to trigger an heartbeat you only need those 2 lines:
Code:
context.sendBroadcast(new Intent("com.google.android.intent.action.GTALK_HEARTBEAT"));
context.sendBroadcast(new Intent("com.google.android.intent.action.MCS_HEARTBEAT"));
where context is the application context.
Those intents will be "catched" by GoogleServicesFramework (GSF) that will physically send the heartbeat packet to the google servers. If an aswer come back instantly the push connection is alive, otherwise if in 60 seconds there is no answer back, GSF will initiate a new push connection.
The first intent is for Ice Cream Sandwhich and below "I think", while the second one is used in new android versions, should depend from the GSF version installed..But you can safety fire both, since one of the two won't just do anything.
Not sure if it is a good practice to place it inside an application, since if every developer will do that the battery will be killed. Maybe you can invoke that only in some situations.
Click to expand...
Click to collapse
Thanks a lot.
Your right, if every developer use it then can turn in to a problem.
I'm not going to use it, only in the start of the app if the users reports me problems. But first i'm going to suggest your application, i think is a better solution by the moment :good:.
Thanks for satisfy my curiosity.
PNF root reached 50.000+ downloads!
PNF no-root need more advertising..Share it to people may need this app and give 5 stars!
Great app :good:
I'm new with android. How can I swipe whatsapp away from the recent apps in settings when I finished a chat session?
Thanks in advance
lefty68 said:
Great app :good:
I'm new with android. How can I swipe whatsapp away from the recent apps in settings when I finished a chat session?
Thanks in advance
Click to expand...
Click to collapse
Depends from your phone I think, just launch the recent apps list and remove / swype whatsapp from there..
On the Nexus phones there is a dedicated on screen button to open the recent app list, on some Samsung phone I think you can long press the home button.
Inviato dal mio Galaxy Nexus utilizzando Tapatalk
andQlimax said:
Depends from your phone I think, just launch the recent apps list and remove / swype whatsapp from there..
On the Nexus phones there is a dedicated on screen button to open the recent app list, on some Samsung phone I think you can long press the home button.
Inviato dal mio Galaxy Nexus utilizzando Tapatalk
Click to expand...
Click to collapse
On Huawei g300 phone I can long press the home button to open the recent app list too, but it seems like in android 2.3.6 I can't swipe apps away. Any alternative action?
andQlimax said:
Basically to trigger an heartbeat you only need those 2 lines (those are undocumented, I it discovered by decompiling GSF):
Code:
context.sendBroadcast(new Intent("com.google.android.intent.action.GTALK_HEARTBEAT"));
context.sendBroadcast(new Intent("com.google.android.intent.action.MCS_HEARTBEAT"));
Click to expand...
Click to collapse
Hi, I'am using the same method in my product.
Can we reach an agreement how to reduce the frequency of these intent calls?
I have no idea to realize any heartbeat timeout settings in my app (hard policy).
I can't listen for these intents cause it requires com.google.android.c2dm.permission.SEND permission that can't be acquired.
For example, can you send some additional broadcast intent (w/o permissions) when fire heartbeat?
I'll listen for it and reset own alarms to not to do the same action.
dd00_xda said:
Hi, I'am using the same method in my product.
Can we reach an agreement how to reduce the frequency of these intent calls?
I have no idea to realize any heartbeat timeout settings in my app (hard policy).
I can't listen for these intents cause it requires com.google.android.c2dm.permission.SEND permission that can't be acquired.
For example, can you send some additional broadcast intent (w/o permissions) when fire heartbeat?
I'll listen for it and reset own alarms to not to do the same action.
Click to expand...
Click to collapse
I have to check, there is an other intent directly fired by android which indicate that an heartbeat has been sent, you can listen that intent I think
I don't remember it right now what, I will check tomorrow maybe and will let you know
dd00_xda said:
Hi, I'am using the same method in my product.
Can we reach an agreement how to reduce the frequency of these intent calls?
I have no idea to realize any heartbeat timeout settings in my app (hard policy).
I can't listen for these intents cause it requires com.google.android.c2dm.permission.SEND permission that can't be acquired.
For example, can you send some additional broadcast intent (w/o permissions) when fire heartbeat?
I'll listen for it and reset own alarms to not to do the same action.
Click to expand...
Click to collapse
@dd00_xda
It seems there isn't an android system intent that you can listen to check if an heartbeat has been sent.
About your request to send some broadcast intent in my app, what will be the advantage for you? I mean, if you already need my app installed, then you don't need at all your own alarm..My app by default send and heartbeat every 5 minutes for example (the alarm will start every time a connection is made) and in that way the push connection is already alive..and every notification you app need to listen, it will always being received
Thanks very much for creating this app! I have a question about it.
I previously had a Samsung Galaxy S3 running Android 4.1.2. Push notifications worked fine over Wi-Fi when I was at home.
I have now switched to a Nexus 5 running Android 4.4. I'm still using the same router at home, but I'm getting an issue with notifications being delayed. Sometimes I will not get any notifications for a while, then a bunch will turn up at once from different apps.
Does the issue I've described sound like it's related to the problem that this app is designed to fix? If so, how come everything worked fine with my S3 with the same router?
Many thanks!
funksoulbrother said:
Thanks very much for creating this app! I have a question about it.
I previously had a Samsung Galaxy S3 running Android 4.1.2. Push notifications worked fine over Wi-Fi when I was at home.
I have now switched to a Nexus 5 running Android 4.4. I'm still using the same router at home, but I'm getting an issue with notifications being delayed. Sometimes I will not get any notifications for a while, then a bunch will turn up at once from different apps.
Does the issue I've described sound like it's related to the problem that this app is designed to fix? If so, how come everything worked fine with my S3 with the same router?
Many thanks!
Click to expand...
Click to collapse
maybe the issue is that the device loose the network while the screen is off? that's a common problem on some device, it is not fixed by PNF
andQlimax said:
maybe the issue is that the device loose the network while the screen is off? that's a common problem on some device, it is not fixed by PNF
Click to expand...
Click to collapse
Thanks for the reply!
Do you have any recommendations of how I could troubleshoot this issue? I really don't know what the cause is - I just know it happens, and if it was a widespread issue with the Nexus 5 then a lot more people would be talking about this issue. I've only seen a handful of folks mentioning it.
Thanks again.
funksoulbrother said:
Thanks for the reply!
Do you have any recommendations of how I could troubleshoot this issue? I really don't know what the cause is - I just know it happens, and if it was a widespread issue with the Nexus 5 then a lot more people would be talking about this issue. I've only seen a handful of folks mentioning it.
Thanks again.
Click to expand...
Click to collapse
if the phone disconnect from the wifi while the screen is off (happen also with only some routers sometimes), you usually should see the phone reconnect as soon as you wake the screen..if you pull down the notification bar and open the toggle switch, you should see the wifi icon orange (no connection to google server) and in few seconds become white again (connected).
andQlimax said:
if the phone disconnect from the wifi while the screen is off (happen also with only some routers sometimes), you usually should see the phone reconnect as soon as you wake the screen..if you pull down the notification bar and open the toggle switch, you should see the wifi icon orange (no connection to google server) and in few seconds become white again (connected).
Click to expand...
Click to collapse
Thanks again.
I don't believe the Wi-Fi is disconnecting. I can ping the device when the screen has been off for ages and notifications do come in when the screen is off - they're just delayed and sometimes I don't get a notification at all, yet I'll get an email notification on my PC.
funksoulbrother said:
Thanks again.
I don't believe the Wi-Fi is disconnecting. I can ping the device when the screen has been off for ages and notifications do come in when the screen is off - they're just delayed and sometimes I don't get a notification at all, yet I'll get an email notification on my PC.
Click to expand...
Click to collapse
that's strange...anyway my nexus 5 is arriving, I will do some tests and see if PNF is working correctly on KitKat

Categories

Resources