Instant Push Notifications! - Miscellaneous Android Development

This is a small .apk file I have created using "Tasker", based on an idea by vallice (here). The credit for the idea goes to him.
This is for those who get push notifications from different apps late. It isn't exactly an app, just a task which it performs (in the background) when certain conditions are met. You will not get a UI when you click on the app, it just starts in the background. This may not be the perfect solution, but just a temporary fix until something better comes along!
If you have a rooted ROM, try out andQlimax's app here, which is a better solution. Although, with that app, I still got a bit of delay with messages from Whatsapp.
Basically what this app does is:
(Every 5 minutes)
a) Switch off mobile data.
b) Wait 5 seconds
c) Switch on mobile data
In effect, it refreshes the mobile data connection every 5 minutes.
It works under these conditions:
1. Screen is off
2. WiFi NOT Connected
3. Between 07:30 a.m. and 11:00 p.m. (To save Battery)
I am not a developer, this is something I have been using since a couple of weeks on "Tasker", and found it to be very effective, albeit with a slight drain on battery. I have tested it on 3 handsets. You can also try out these conditions with "Tasker", if you do not want to install my .apk. It may be useful to some like me who hate getting messages/notifications late.
Who should try it?
1. If you are one of those who don't like getting push notifications late.
2. If push notifications are delayed only when connected to mobile data.
Do not try it if you have trouble connecting to the mobile data network, or the Google network. Also, larger downloads in the background when screen is off should be done on WiFi.
The usual disclaimer:
I am not responsible if anything goes wrong with your phone, or anything else. No Guarantees or Warranties whatsoever, use at your own risk.
P.S.: Please do not flood the thread asking what "Tasker" is, there is a separate thread for that.

Related

[REQ] A Better Solution for Data Auto-Disconnect... with Peak Time/Push Mail

Hi folks
I've searched around the forums and have seen a couple of solutions out there for automatically terminating data connections (Bandswitch, WMLongLife, the registry tweak) but each seems to lack some of what I need and do a lot that I don't need.
Here's the lowdown:
- I've already tweaked the Comm Manager to add the 3G on/off switch so I don't need something that messes with that
- I use push email for business so I need the data connection to stay on during the "peak times" that I've set in Activesync (for me, that's 8am-11pm)
- Outside of peak times, I've got the phone checking email every hour. Right now, it seems to be leaving the connection on afterward.
- I want to keep the automatic updates for HTC Sense's weather and stock tabs. Not every 5 minutes, of course, but at least a couple of times a day. Also tends to leave the connection going when used outside peak hours.
As I understand it, the registry tweak won't work for the Sense tabs. Bandswitch and WMLongLife mess with the 3G radio and, as far as I can tell, don't let you set a timeframe (re: the latter - I suppose when you've got push mail going it pings the Exchange server regularly so in theory it shouldn't consider the connection idle, but why mess with it?)
So, in short, anyone got a solution that could switch off an idle data connection outside of the peak times set in Activesync?
If you just want to kill connections during certain times (ie, night time) try G-Profile. I have it set to kill data connections during the night, works fine for me although I am using a new beta version which is available from their site.
Looks interesting but reading through the manual it looks as if you can only set a profile to disable the data connection during certain hours. I'd like to leave the data available, just switch on auto-disconnect.
Plus, again, there's a lot of extra stuff in there that's really not necessary. I'm looking for something more lightweight...
I haven't tried it, but you might want to take a look at CommMgrPro.
It's also from the creator of Bandswitch.
PhoneAlarm can do this.
I had PhoneAlarm installed on my previous phone. True, it can do this.
But again, it's like using a tank to kill a fly. Sam with CommMgrPro.
Is there no lightweight solution?
+1 for this. It has to be possible, everyone just seems to lump the functionality in with a load of other stuff I'm not interested in.
Up, I'm looking for this also
+1
This kind of app is missing...
SO.... last night I left my charging cable at the office and I only had around 20% of the battery left at 11:00pm. For some reason, the thing kept opening the data channel even though it was outside of "peak" hours for push! I had to reset and turn manually turn off all data... couldn't have the phone die overnight as it's my alarm clock!
Any ideas here?
DialUp Enabler Disabler v06
What about this one
http://forum.xda-developers.com/showthread.php?t=610657

[Tutorial] Quick Wi-Fi Fix

Hey guys,
I've been following XDA-developers for a long time, and would like to return something for all the help the community has provided. I traded my iPhone 4 for a G2X today only to find out that my BB data plan is incompatible -_-. Unwilling to wait until Memorial Day was over (611 closed), I decided to turn on Wi-Fi and tinker with it.
Unfortunately I fell victim to the phone's Wi-Fi's problems. It worked for seconds at startup, then simply stopped. Frustrated, I decided to take manners in my own hands. The evil culprit is T-Mobile's My Account program. Here is how to fix it (root and a $3.99 Market purchase required, no piracy!!)
First follow the directions in this tutorial to root your phone. Its pretty simple. ADVANCED: unrooting method.
Make sure Wi-Fi calling is turned on, as well as 3G/4G (from Mobile networks settings page)
Do a battery pull AFTER you enable the above ^. Wait 1 minute before rebooting your phone.
Wi-Fi should work on its own (although buggy) with these two enabled. If you have 3G/4G, you do not need to do this: for Wi-Fi only users, continue to reboot until you have somewhat of a stable Wi-Fi connection. It's very intermittent but eventually it will work for enough time to download Root Explorer from the market!
Go to the Market and install Root Explorer (purchase required, there may be free ways but I do not know of them and I do not advocate piracy)
Open this app. A popup from Superuser will ask you for permission. Grant it with "Allow"
From Root Explorer, navigate to /system/apps
At the top of the list box click the "Mount R/W" button
Scroll down and look for the following: MyAccount.apk and com.nuance.nmc.sihome (the latter may be named differently but it has a My Account icon)
A box will come up telling you that com.nuance.nmc.sihome has encountered an error. This box will refuse to go away. Simply do a battery pull.
YOUR WI-FI WOES SHOULD BE GONE, and your phone's stability should have improved. Enjoy!
You can download the latest version of My Account from Market now and cease to have problems.
Other safe-to-remove T-Mobile stuff:
EA Games (EAPK)
Zinio (does anyone use this?)
Telenav
Nova
Need for Speed
Polaris Office
LMIRescue (an app T-Mobile can use to potentially remotely command your phone?)
LMIRescueSecurity
yaldak said:
Hey guys,
I've been following XDA-developers for a long time, and would like to return something for all the help the community has provided. I traded my iPhone 4 for a G2X today only to find out that my BB data plan is incompatible -_-. Unwilling to wait until Memorial Day was over (611 closed), I decided to turn on Wi-Fi and tinker with it.
Unfortunately I fell victim to the phone's Wi-Fi's problems. It worked for seconds at startup, then simply stopped. Frustrated, I decided to take manners in my own hands. The evil culprit is T-Mobile's My Account program. Here is how to fix it (root and a $3.99 Market purchase required, no piracy!!)
First follow the directions in this tutorial to root your phone. Its pretty simple. ADVANCED: unrooting method.
Make sure Wi-Fi calling is turned on, as well as 3G/4G (from Mobile networks settings page)
Do a battery pull AFTER you enable the above ^. Wait 1 minute before rebooting your phone.
Wi-Fi should work on its own (although buggy) with these two enabled. If you have 3G/4G, you do not need to do this: for Wi-Fi only users, continue to reboot until you have somewhat of a stable Wi-Fi connection. It's very intermittent but eventually it will work for enough time to download Root Explorer from the market!
Go to the Market and install Root Explorer (purchase required, there may be free ways but I do not know of them and I do not advocate piracy)
Open this app. A popup from Superuser will ask you for permission. Grant it with "Allow"
From Root Explorer, navigate to /system/apps
At the top of the list box click the "Mount R/W" button
Scroll down and look for the following: MyAccount.apk and com.nuance.nmc.sihome (the latter may be named differently but it has a My Account icon)
A box will come up telling you that com.nuance.nmc.sihome has encountered an error. This box will refuse to go away. Simply do a battery pull.
YOUR WI-FI WOES SHOULD BE GONE, and your phone's stability should have improved. Enjoy!
You can download the latest version of My Account from Market now and cease to have problems.
Other safe-to-remove T-Mobile stuff:
EA Games (EAPK)
Zinio (does anyone use this?)
Telenav
Nova
Need for Speed
Polaris Office
LMIRescue (an app T-Mobile can use to potentially remotely command your phone?)
LMIRescueSecurity
Click to expand...
Click to collapse
You don't need to do any of this noob stuff if your wifi doesn't connect to your home router or any router for that matter. It's unneccesary and time consuming, not to mention risky since you could "brick" your phone. All you have to do is reboot the phone, simplest way is hold power button and volume up simultaneously, then it should connect, assuming you entered the correct password if router has secure connection.
I just turn wifi off then back on. Works for me.
And stop with the noob stuff the guy just wrote he came from an iPhone to a g2x.
He will figure it out as he goes.
Sent from my LG-P999 using XDA Premium App
mr.orange303 said:
He will figure it out as he goes.
Click to expand...
Click to collapse
I see two band-aid solutions, a reboot, and a restart...gosh that is advanced.
Verse a solution to fully resolve the problem, and keep it gone. More importantly a possible isolation of the cause.
These super duper pro android interlopers are unapproachable on their savvy solutions. Ummm no
Since the OP says its linked to My account program, and I know on first run it says a newer copy is available, I am going to wonder that many users don't touch it.
So since I am already freshly on a complete reset of everything (erase all date, or hold down volume and power) I am going to try.
1. Full erase reset
2. First thing upadate new version of My Account.
3 Hard restart.
4. See how it reacts
My wifi is decent except sometimes it does clog up and I have to clear buffers and shut down programs to get it to kick up. Start and stop wifi solves nothing on mine.
Anyways its about 10 minutes of time to do, since my phone already is in near out of the box setup.
Sorry but I'm not here to post "noob" stuff. Of course restarting the phone or its wifi radio were part of my first efforts. But the phone's stock software has a bug in which the default My Account program a) causes a DNS issue and b) displays itself twice in Manage Applications. Things work great if you have a working data connection from tmo but if not you will notice that wifi refuses to work on its own. I'm not dumb and by no means am I a noob. I've been following XDA since the days of the Wizard. By the way rooting and deleting useless carrier garbage like the buggy and persistent MyAccount.apk will not brick your phone unless you are careless.
"My Account" from tmo has been nothing but a pain in the ass for me. I froze it using Antek App Manager (a free app). I used the same software to freeze the other garbage that came installed by tmo, and battery and booting issues have greatly improved. Just my 2 cents.
Other stuff I froze include: Car Home, ea games, Zinio reader, AppPack, T-Mobile TV, and wifi calling.
Of course some are big fans of wifi calling but I don't need or use it.
yaldak said:
Sorry but I'm not here to post "noon" stuff. Of course restarting the phone or its wifi radio were part of my first efforts. But the phone's stock software has a bug in which the default My Account program a) causes a DNS issue and b) displays itself twice in Manage Applications. Things work great if you have a working data connection from tmo but if not you will notice that wifi refuses to work on its own. I'm not dumb and by no means am I a noob. I've been following XDA since the days of the Wizard. By the way rooting and deleting useless carrier garbage like the buggy and persistent MyAccount.apk will not brick your phone unless you are careless.
Click to expand...
Click to collapse
News flash....The MyAccount app isn't causing the DNS issue. Do some fact checking before posting.
LOL... man u guys are harsh
LG is sending out a fix. What does that tell you? Only can manage till then.
Sent from my LG-P999 using XDA Premium App
prettyboy85712 said:
News flash....The MyAccount app isn't causing the DNS issue. Do some fact checking before posting.
Click to expand...
Click to collapse
Okay sorry, it causes the HSPA / Wi-Fi switching issue. Could you be any more polite about correcting me? FYI I haven't found any SOLID proof of this. Immediately after removing MyAccount and all of its derivatives from the phone DNS requests worked flawlessly; It's been 9 hours of constant wi-fi only use without issues (NO radio turned on). Prior to removing the app, only IP addresses would be resolved by the browser.
LOL... man u guys are harsh
Click to expand...
Click to collapse
Seriously are, I was only trying to make a helpful post to those users or viewers who are not very tech-literate but possess the ability to root a phone and forget about it to fix an irritating issue with the phone.
dude dont worry about it....good job
Thanks for trying to help with this problem. Its threads like this that help to get to the bottom of these things.
Seems some people here would rather everyone be so afraid to post bad information that there is none at all. But we know better right?
sl0play said:
Thanks for trying to help with this problem. Its threads like this that help to get to the bottom of these things.
Seems some people here would rather everyone be so afraid to post bad information that there is none at all. But we know better right?
Click to expand...
Click to collapse
No..Those people you're referring to would rather have people search before posting. This so called "fix" has been posted many times. No need to start a new thread.
I tried this and got no error lol. What I did was reinstalling MyAccount with the MyAccount.apk in system\app and now my wifi actually works with the Market.

Moving from Windows Mobile to Android (HTC Sensation)....Data connection

Having decided against moving to Win Mobile 7 I got a Sensation a couple of weeks ago (from a HD2) and hence my first Android device.
All is going well apart from the data connection. On Win Mob 6.5 I had 5 business emails which the phone checked every 15-30 minutes. The phone would connect, check the emails and then disconnect. If I wanted to browse then when I opened the browser, it connected and disconnected when I closed it.
On the Sensation I seem only to have the option of data connection on or off. I have set the email to sync every 30 minutes but I have to have the data connection on all the time to let it do this. The battery drain is crippling.
I download Juice Defender Ultimate after reading another thread but after setting it up it only allows data for so many minutes in the hour and when I say that the browser should overide Juice it just says I have no connection.
I love Android but losing 75% of your battery in 6 hours because of business emails is not quite good enough.
So is there a way of getting the data connection to go on and off as required (both on demand and for scheduled automatic email syncs)?
And if not what Juice defender settings do I need to get it to do what I want?
Any help much appreciated.
I'm looking for an answer to this to, for the exact same reason. A "Data Connection Timeout" setting or something similar.
Switch to pushmail, saves you quite some data transfers and is more effective in the end. I have two hotmail addresses plus oen gmail on pushmail and I don't notice any more battery drain with data connection permanently on.
Settings>Mobile Networks>untick "Enable always-on mobile data.
This usually helps the battery drain a lot, especially if you don't have things that are always using data, like pandora and the like. If you have things set to specific intervals, then it should work like your WinMo devices and connect then disconnect as needed.
Admittedly the droid likes to be more automated than WinMo, and you have much less control than 6.5. (Never used Phone7, so I can't comment on that.) But, once you learn the tricks to using it (just like the tricks to 6.5) its just as powerful as WinMo was for the business geared user, as far as I can tell. The battery is something that takes some finessing as well, so keep working with it and keep learning. There are some pretty good guides available that can tell you steps to take, even a few here on XDA for the searching.
Good luck with your new droid device, it will become second nature in time. It took me a month to quit tapping the icons in the task bar. LOL.
Thanks for the replies
I think the fact that the HD2 and the Sensation both use Sense helps and therefore it has been fairly easy to get to grips with Android.
I have already unchecked the 'always on' option but I never seem to get any emails unless I open the email program up...even when its running in the background. Win Mobile 6.5 used to check without the email being open.
I have had another play with JD and seem to have sort of got what I want but sometimes the data connection won't wake up after the unlock screen without a data toggle on and off.
Is there any better email apps from the market?
I have already unchecked the 'always on' option but I never seem to get any emails unless I open the email program up...even when its running in the background. Win Mobile 6.5 used to check without the email being open.
Click to expand...
Click to collapse
Strange because when I do that I get a lot better battery life and my push Gmail arrives in 2-3 minutes instead of isntantly. also Google Talk won't stay connected with this setting. Other than that it seems to work really well for me doing exactly what you want.

Delayed Facebook notifications

I've just switched from Android (running MIUI Rom on my Galaxy S) to Windows Phone on a HTC Titan running 7740. One of the things that's bugging me (other than toasts disappearing and no central store of notifications) is that Facebook notifications for me always seem to be 5 minutes delayed. If someone sends me a Facebook message or posts on my wall, the notification always takes 5 minutes to come through to my phone. This happens whether i'm on Wifi or 3G. I've got notifications set to 'As they arrive' but the delay persists. This is especially annoying when someone sees my Facebook status as Online and tries chatting to me and all my replies are 5 minutes late.
Is this the same for everyone on Mango? My outlook/exchange notifications come through instantly so I wonder if this is a Facebook issue or if its the Windows Phone implementation of push notifications.
I also find the Facebook Live Tile is slow to update - it will show I have a notification, i'll read that notification but the Live Tile doesn't update for a while.
Replies are much appreciated!
Facebook notifications are slow as he'll. Just the way it is...
Sent from my SGH-T959 using Tapatalk
In the Facebook app notifications are a little bit delayed, but when chatting its almost instant like texting. At least for me anyway.
Notifications barely work and when they do, they are atleast 10 mins delayed. I've noticed this for most of the apps including kik,Facebook,whatsapp,weather channel.
Most of the time I don't receive push and have togo into the app to see that I have messages
Sent from my T8788 using XDA Windows Phone 7 App
Some information that would be worth including with the posts from users experienceing problems.
Location and carrier. It's pretty easy to set up your profile to display these automatically.
Like the poster above from Chicago, chatting is nearly instantaneous for me in the Minneapolis area.
I did recieve a friend request notification about 30 seconds after I had received it on my iPhone.
Different Notification have different settable priorities by the developers.
So, recieving a Toast about a friend request could be considered by the develoeprs to be low priority, since it does not require an immediate response.
I moved from Louisiana to Pennsylvania. They're still slow as hell. Everywhere in between, there was no change. The Vibrant with the Official Facebook Apps has no issue anywhere, nor does the iTouch when used in various places on WiFi.
If it is high priority on every other platform, I don't see why it cannot be high priority here.
It's called a Social Network for a reason. Friend requires are high priority on this...
The issue just isn't about friend request. Chat, Messages, Posts, Picture Comments, Photo Tags, etc. are all more than considerably slower than on other platforms. EVERYTHING is slower.
Maybe Facebook is just low priority on this platform, period? I'm jumping the gun because you'll eventually get there, it seems...
Facebook app activity notifications are instant. Chat notifications are instant. Every other app that's supposed to be instant is. However, the "Me" tile is delayed, but we all know that.
N8ter said:
I moved from Louisiana to Pennsylvania. They're still slow as hell. Everywhere in between, there was no change. The Vibrant with the Official Facebook Apps has no issue anywhere, nor does the iTouch when used in various places on WiFi.
If it is high priority on every other platform, I don't see why it cannot be high priority here.
It's called a Social Network for a reason. Friend requires are high priority on this...
The issue just isn't about friend request. Chat, Messages, Posts, Picture Comments, Photo Tags, etc. are all more than considerably slower than on other platforms. EVERYTHING is slower.
Maybe Facebook is just low priority on this platform, period? I'm jumping the gun because you'll eventually get there, it seems...
Click to expand...
Click to collapse
maybe if you'd just sign in at one location only it would work alot better because I'm having no issues at all.
prohibido_por_la_ley said:
maybe if you'd just sign in at one location only it would work alot better because I'm having no issues at all.
Click to expand...
Click to collapse
Maybe they should fix it to work correctly. Everyone else's clients work. I'm not the issue
Sent from my SGH-T959 using Tapatalk
N8ter said:
Maybe they should fix it to work correctly. Everyone else's clients work. I'm not the issue
Click to expand...
Click to collapse
Usually have Androids to test around the house and both WP7 and my current Android work fine for FB notifications.
I didn't say they didn't work. I said they were slow as hell. If I was so obviously wrong, this thread wouldn't exist. I am not the OP. People on other forums are having the same complaints about the PUSH Notification speed for third party apps on this platform.
Again: Issue is not the notifications "Not Working." Issue is that the Notifications are noticeably delayed compared to Android and iOS (and Blackberry and WebOS) handsets. Sometimes you get the Notifications 10 minutes to an hour after the Facebook applications on Android and iOS, which come in at virtually the same time. I notice this on a daily basis, because I always have my Vibrant, HD7, and iTouch 4 with me and I'm almost always on a WiFi connection.
Since I always have those devices with me, it's not necessarily a deal breaker, because I tend to just use those phones for everything except Sending/Recieving SMSes and making calls, anyways. However, if the HD7 was my only/lone device, it WOULD be a huge issue for me.
The whole concept of PUSH notifications is that they aren't delayed because the server PUSHes them to your phone the instant they come in. That is not happening for a lot of apps on WP7 right now. The Notifications are late 95% of the time, sometimes unacceptably so.
Everytime a Notification is late, it basically forces me to use another device to respond to that Notification. Do you see how that can frame someone's "perspective" of the user experience?
N8ter said:
I didn't say they didn't work. I said they were slow as hell. If I was so obviously wrong, this thread wouldn't exist. I am not the OP. People on other forums are having the same complaints about the PUSH Notification speed for third party apps on this platform.
Again: Issue is not the notifications "Not Working." Issue is that the Notifications are noticeably delayed compared to Android and iOS (and Blackberry and WebOS) handsets. Sometimes you get the Notifications 10 minutes to an hour after the Facebook applications on Android and iOS, which come in at virtually the same time. I notice this on a daily basis, because I always have my Vibrant, HD7, and iTouch 4 with me and I'm almost always on a WiFi connection.
Since I always have those devices with me, it's not necessarily a deal breaker, because I tend to just use those phones for everything except Sending/Recieving SMSes and making calls, anyways. However, if the HD7 was my only/lone device, it WOULD be a huge issue for me.
The whole concept of PUSH notifications is that they aren't delayed because the server PUSHes them to your phone the instant they come in. That is not happening for a lot of apps on WP7 right now. The Notifications are late 95% of the time, sometimes unacceptably so.
Everytime a Notification is late, it basically forces me to use another device to respond to that Notification. Do you see how that can frame someone's "perspective" of the user experience?
Click to expand...
Click to collapse
mine aren't late, usually a few seconds to a couple mins at the most. Not an issue at all and my HD7 is the only device I carry.
N8ter said:
I didn't say they didn't work. I said they were slow as hell. If I was so obviously wrong, this thread wouldn't exist. I am not the OP. People on other forums are having the same complaints about the PUSH Notification speed for third party apps on this platform.
Again: Issue is not the notifications "Not Working." Issue is that the Notifications are noticeably delayed compared to Android and iOS (and Blackberry and WebOS) handsets. Sometimes you get the Notifications 10 minutes to an hour after the Facebook applications on Android and iOS, which come in at virtually the same time. I notice this on a daily basis, because I always have my Vibrant, HD7, and iTouch 4 with me and I'm almost always on a WiFi connection.
Since I always have those devices with me, it's not necessarily a deal breaker, because I tend to just use those phones for everything except Sending/Recieving SMSes and making calls, anyways. However, if the HD7 was my only/lone device, it WOULD be a huge issue for me.
The whole concept of PUSH notifications is that they aren't delayed because the server PUSHes them to your phone the instant they come in. That is not happening for a lot of apps on WP7 right now. The Notifications are late 95% of the time, sometimes unacceptably so.
Everytime a Notification is late, it basically forces me to use another device to respond to that Notification. Do you see how that can frame someone's "perspective" of the user experience?
Click to expand...
Click to collapse
Try keeping WiFi off on your Windows Phone 7 with a SIM in.
It looks like WiFi is shutting off when the phone screen shuts off. When I let my phone sit for a while, and then turn the screen back on, the WiFi icon is animated. Then it turns solid, which I am guessing means that is was connecting and is now connected.
Obviously, no push notification will come through if WiFi is not connected and no SIM is in the phone.
I have not noticed any delays when I don't have WiFi on. So, there might be some problem related to data, where WiFi does not transition to 3G.
I have also noticed that WiFi shuts off on the iPhone and reconnects when you turn the screen on.
I am starting to think that delays might be related to this.
JVH3 said:
Try keeping WiFi off on your Windows Phone 7 with a SIM in.
It looks like WiFi is shutting off when the phone screen shuts off. When I let my phone sit for a while, and then turn the screen back on, the WiFi icon is animated. Then it turns solid, which I am guessing means that is was connecting and is now connected.
Obviously, no push notification will come through if WiFi is not connected and no SIM is in the phone.
I have not noticed any delays when I don't have WiFi on. So, there might be some problem related to data, where WiFi does not transition to 3G.
I have also noticed that WiFi shuts off on the iPhone and reconnects when you turn the screen on.
I am starting to think that delays might be related to this.
Click to expand...
Click to collapse
It happens even when WiFi is off, plus, when the WiFi shuts off the phone falls back to 3G and I get a full 3G signal here.
You're not onto anything
The Vibrant is still way faster than the HD7 when I'm away from Home and Off of WiFi. Obviously the iTouch won't get anything off of WiFi.
Additionally, the device does not sleep WiFi when it's plugged into a charger and I use USB extenders and almost always have them on a charger when I'm at home or in the car. My phone charge cables are like 20 feet long, Lol.
---------- Post added at 09:33 PM ---------- Previous post was at 09:27 PM ----------
prohibido_por_la_ley said:
mine aren't late, usually a few seconds to a couple mins at the most. Not an issue at all and my HD7 is the only device I carry.
Click to expand...
Click to collapse
I'm changing carriers in two months and going down to one phone. I can assure you I will not have to worry about this when that happens. It's not something I should have to deal with, and it's not something you or anyone else should have to deal with either.
Are you just talking about the facebook app or people's hub integration?
People's hub is always up to date for me and messages through it are instant. I don't use the facebook app so not sure there. Neither do groups (like the dog park group i am part of) and bugs me the most. The app says it does but when you click on a notification it takes you to the facebook mobile and says not found. For groups i use IE9. Works great even as the desktop version. Why even use the app when you have that and the people's hub?
Oh my, N8ter saying that Android does something faster than Windows Phone and that Windows Phone is ruining a user experience model. And he's saying they need to make it work properly? What a surprise!
My notifications come in within 1-10 seconds, most of the time they'll come through on my phone before they come in on my girlfriend's Android in a picture we're both tagged in, the platform isn't the problem.
ROCOAFZ said:
Are you just talking about the facebook app or people's hub integration?
People's hub is always up to date for me and messages through it are instant. I don't use the facebook app so not sure there. Neither do groups (like the dog park group i am part of) and bugs me the most. The app says it does but when you click on a notification it takes you to the facebook mobile and says not found. For groups i use IE9. Works great even as the desktop version. Why even use the app when you have that and the people's hub?
Click to expand...
Click to collapse
People polls when opened so of course its always up to date. I am talking about push notifications for the Facebook app and message hub Facebook chat. And various other third party apps. Something is wrong with the way Microsoft handles push notifications.
People hub social stuff does not update in the background. It clearly polls whenever you open it up, just like Samsung social hub in touchwiz 3.
Sent from my SGH-T959 using Tapatalk
N8ter said:
People polls when opened so of course its always up to date. I am talking about push notifications for the Facebook app and message hub Facebook chat. And various other third party apps. Something is wrong with the way Microsoft handles push notifications.
People hub social stuff does not update in the background. It clearly polls whenever you open it up, just like Samsung social hub in touchwiz 3.
Sent from my SGH-T959 using Tapatalk
Click to expand...
Click to collapse
I second that. You need the facebook app to receive toast notifications when something happens in facebook. But this push notification for me is delayed and noticeably so compared to Android and iOS. This is the case when using wifi or 3g and is the case on my HTC Titan and HD7. This isn't a HUGE deal for wall posts (though it is annoying), but i've had to turn my facebook status through WP7 onto Appear Offline, because chat notifications are delayed and when you appear to people on facebook as Online they expect a faster response.
I get FB chat messages instantly on my Focus. Notifications from the FB application aren't as quick but never been delayed for more than a few minutes. Never been a problem. I also play scrabble a lot with friends and as soon as they make there move (there sitting across from me), I get a push notification a second later. So the push notifications are working great for me. Maybe a format of your HTC Titan will help?
N8ter said:
Facebook notifications are slow as he'll. Just the way it is...
Sent from my SGH-T959 using Tapatalk
Click to expand...
Click to collapse
I can only compare with windows7 and wp7 but I always get notifications faster on my phone then my pc (always)
pc on wifi and phone on 3g.

[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