How do apps launch to send an update notification? - General Questions and Answers

Say I've got an app that's sending me an upgrade/update notification (Android 10). I can force-stop it and the notification goes away. When I restart my phone, I won't see any indication that the app auto-launched (eg: it won't be in services). However, it eventually launches again (in the background, I presume) and sends me another update notification.
How is that hypothetical app launching?
edit: Code sites hint that AlarmManager is a potential culprit. However posts discussing AlarmManager are disproportionally old. Has it been depreciated?

Different manufacturers call the update notification service differently. When you find the right one, use ADB AppControl
to disable it.

ze7zez said:
Different manufacturers call the update notification service differently. When you find the right one, use ADB AppControl
to disable it.
Click to expand...
Click to collapse
I appreciate that. It looks like a great setup. However, I'm rooted. Something on the handset would be a better fit for me.

Related

[Resolved] Not getting push notifications? This may help.

While trying to figure out why I wasn't getting my push notifications I noticed that there are a lot of people having this same problem. It doesn't seem to affect just one brand or model of phone. Nor does it seem to be a specific carrier or firmware version. I finally figured out the problem and decided to post this here rather than in the forum for my device. My particular device is a Verizon GS4, rooted, stock firmware, version MK2.
Originally, I had thought it was only Facebook and eBay that I wasn't getting notifications from. It turned out I wasn't getting any of them except text messages and email.
If you are having the same problem, this is why. The problem is that one of your apps is blocking the notifications. For me, it was Yahoo instant messenger. After a whole day searching and trying every solution I could find, I finally just started uninstalling apps that get push notifications. Once I uninstalled YIM I knew instantly that I had found the cause because I got about 20 push notifications, they were all the ones which I hadn't received. It really wasn't until then that I realized just how many apps I wasn't getting notifications from.
The app that's causing you to not receive your notifications may or may not be YIM. It more than likely will be an app which you downloaded and installed, as opposed to one preinstalled on the phone.
My suggestion would be to go through your apps and uninstall, one at a time, any apps you've installed which receive push notifications. More than likely, you will instantly get some notifications when you find the one causing the problem. Once you find the faulty app, you should be able to reinstall it without a problem. If you reinstall it and the problem returns, you will at least know where to begin looking for a solution.
If your problem is only with a specific app, then you may need to check your settings for that particular app. With, for example, the Facebook app, if you uncheck the messages box in settings, you will only get push notifications during certain times. So that may be your problem if its just Facebook. Or similar if its a different app.
I hope this actually helps someone. Any questions, I'm subscribed and I will respond right away.
Sent from my SCH-I545 using Tapatalk

[Q] Not receiving notifications for Google Playstore app updates?

Title pretty much says it all. I have the box checked for notifications for app updates via the Google Playstore, but it seems the only way I can find out if there is an upgrade for an app I'm using is to manually open the app and check. Do I need another setting checked besides the "App updates available" under the notification settings or something? Thx!
-Matt
Roflwafflez said:
Title pretty much says it all. I have the box checked for notifications for app updates via the Google Playstore, but it seems the only way I can find out if there is an upgrade for an app I'm using is to manually open the app and check. Do I need another setting checked besides the "App updates available" under the notification settings or something? Thx!
Click to expand...
Click to collapse
It could just be because it's a new phone and you haven't spent much time with it yet to figure out it's standard behavior.
I've noticed that on every one of my phones that the Play Store often waits until particular events occur before notifying you of app updates. I always set mine to check but there are a lot of times that I go in and check manually and there are updates available that it didn't tell me about. However, if I don't update and just wait a while, it eventually notifies. It just seems to wait for a particular time of day or for X number of updates to become available or for your phone to do something specific first. I frequently see a lot of stuff happen on my phones right after I complete a telephone call (which I don't make/receive very often), like suddenly I get the Play Store notification and the silly "Login to Facebook to sync your contacts" notification, stuff like that. Sometimes it happens right after restarting the phone. It's just odd behavior. Play Store has always been this way for me, across many different smartphones.
Not to say that there isn't a specific problem with the S6. There still could be. But it's possible that it's just standard Play Store behavior.

gmail not pushing mail

So, ever since the N update on my S7 and now on the S8, my email doesn't push/sync right away at all anymore. I have to go into the email for it update. I'm not sure whyy it's doing this. I haven't set it up that way, have background data allowed, and don't have any battery saviors set up to do this...
Any ideas on this why this is happening?
Nougat's overly aggressive doze is the cause here. Fix: https://androidtutorial.net/2017/05/02/fix-delayed-push-notifications-galaxy-s8s8/
The option under Special Access you want to look at is Optimise battery Usage.
I have the same issue. I have gmail set so that it is NOT Optimized for battery. I still don't get gmail updates (and therefore no notification) until I open the app (usually). Sometimes I do get the notification soon after the email is sent to me. Rather random.
After messing around for a while, I think it is a no notification thing and not a lack of synchronizing the emails. If I send myself a gmail, I get no notification, but I can look in my google account and see where gmail has synchronized. Then I go to gmail and the message is there.
^yep, could be related...but how to resolve?
Possible Solution - Worked for Me (So Far)
galaxys said:
^yep, could be related...but how to resolve?
Click to expand...
Click to collapse
So, I solved it by going to the app manager and disabling the gmail app. Since it is a system app, it doesn't uninstall it, but reverts it back to some previous version. That version has been giving me the appropriate notifications for every email I have received since.
I think I will look at disabling updates for gmail for a while.
Smithfolk4 said:
So, I solved it by going to the app manager and disabling the gmail app. Since it is a system app, it doesn't uninstall it, but reverts it back to some previous version. That version has been giving me the appropriate notifications for every email I have received since.
I think I will look at disabling updates for gmail for a while.
Click to expand...
Click to collapse
I deleted data for the app. That also fixed the problem (for now anyway)
This has been an ongoing issue for me for over a year. It was an issue on this phone, my S7 edge and Note7.
Often I will see an email on my phone, read and archive it, then go about my business. Several hours later I go into Gmail on my PC and that email is still sitting there, unread.
Actually sending out an email on the phone seems to make the sync update, but other actions like reading, moving, or deleting emails doesn't. I've had times where my emails were still unread on the Gmail website 12 hours after reading them on the phone. I have the app's battery optimization settings turned off, and I have even gone into the app several times during that period and pulled down to check for new messages. It's pretty awful that the sync has such serious issues and nobody is fixing it.
Deleting the app's updates doesn't work for me. It might fix the issue briefly, but it always comes back pretty quickly, even without any updates to the app.
The only thing that fixed the issue for me was installing an app called something like "Gmail Push Fixer". It worked wonders on my S7 edge. Unfortunately, the app requires root so it isn't an option on my Snapdragon S8+.

Apps don't show notifications until opened and can't get started by other applications

Dear XDA Forum!
first: yes i used the search function although i couldn't find a thread which addresses my issue in general, also i tried a few of the fixes regarding the notifications although it didn't solve my problem.
Phone: Doogee S88 Plus
OS: Android 10
I received this phone a while back and i'm pretty happy about it, although i noticed a very strange behaviour regarding nearly all apps.
Apperantly, every app that isn't a foreground app, will get killed or at least will not send notifications until they are opened which, you sure can think, is damn annoying.
Also, apps won't start with Android Auto, except Google Apps like News, calendar, maps and such. Spotify, Audible and every "external" apps will refuse to start on android auto until i open them manually on the phone, then they will show up on my car as well.
i checked the installed software and noticed a preinstalled energy saving app (which is funny with an 10Ah battery but well ) called com.cydroid.softmanager
Thinking this could be an issue i uninstalled/deactivated the app via ADB, although it didn't get better in any form.
And yes, of course i checked the battery optimization which is turned off for the usual apps which send notifications like Signal, Threema, Outlook, Authenticator and such
As i use Signal as my SMS/MMS app, i can say that i will not receive SMS/MMS notifications as well, i will receive them if i use the standard SMS app Messages though.
Also notifications in general are activated.
Maybe it has something to do with Doze? I'm currently at my wit's end.
I already thought about rooting the device, although it doesnt seems like that there is any rom out there for it, it has the option for OEM Bootloader unlock in the dev options though, but to be honest it's been a long while since i rooted android devices except from Samsung.
Hopefully you guys can help me!
Kind regards
**edit**
also i think it has to do with the background apps in general since foreground apps like my VPN (Cyberghost) will keep running without issues
also i noticed if i restart the phone all the apps will start correctly in the background, so it seems, since i'll get the notifications immediately

This is pathetic -- Android Notification Delay problem fixed by using adb?!

I simply cannot recommend Android to my normie friends and family.
Let me restate this: It is not our job to fix Google's bugs.
This is a US-centric view.
If you can't tell: I am a bit aggravated right now.
I could not get my GMail, GCal, and other notifications to come through properly on Pixel 5's Android 11 OR S21 Ultra's Android 11.
This has apparently been an issue that many an Android user suffers through silently -- and, some don't even know that this is happening to them. I guess they're embarrassed to publicly state that their mobile OS is subpar.
When you get an e-mail or if a calendar event reminder is coming up, and even if your phone's screen is OFF/locked: you should get an \*\*\*instant\*\*\* notification. No delay whatsoever.
Well, if my screen was off/locked, I wouldn't get these notifications or it would take 10+ minutes to show. But, once I unlocked my phone: boom, notifications. And, sometimes even if my screen wasn't locked, there would be a serious delay or no notification.
After spending loads of time trying to fix this problem, me and my friend finally stumbled upon a solution: ./adb shell dumpsys deviceidle disable
A reboot eliminates this setting modification, by the way.
Do not tell me that instant e-mail notifications are not necessary. Many of us work jobs that require them to be instant.
No end user should ever have to go through this. iPhone users certainly don't go through this.
If Google doesn't care about Android users, then, why should I, as an Android user, care about Android too? Just switch to iPhone, I guess.
Google pays Apple $10bn+ every year and makes better software for iOS than it does for Android.
Just look at the damn widgets that iOS users get.
So, $10bn/year plus the cost of the software developed to cater to iOS users.
This makes Google a simp cuck to Apple, nothing else.
Would Apple ever return this favor? No.
Therefore, Google management is a simp cucked by Apple, nothing more.
We are fools to be using this OS.
If Google is willing to subsidize my iOS software updates and experience to the tune of billions of dollars every single year -- then, why not just switch?
Clearly, my experience has shown me that Android can be cheaper -- if I don't value my time.
Statistic after statistic bears it out: iPhone users are wealthier.
I am tired of being an Android luser -- why should I take on such abuse and neglect by the main author of my mobile OS?
Before you start patronizing me: YES, I tried every other bloody trick in the book to fix this issue.
No end user should ever have to go through this! No end user should have to run adb commands to enable basic functionality.
There are some basic things that modern smartphones should just be able to do: instant notifications, 3rd party camera support, functioning RCS or some other form of E2EE messaging built-in, reliable local backups, a nationwide network of repair facilities, etc.
Android fails on all of these.
iPhone ordered. Glad to leave this Android ghetto behind.
Hey Google, if you have some self-respect: then, instead of paying Apple $10bn an year and doing iOS development, how about you actually work on some basic Android functionality instead?
You are right and I fully share your emotions regarding nasty state of notifications we often observe in our phones.
However, apart from google, there is a 3rd party: the china cellar/basement where our phones are produced. Owners of these cellars think they are very clever guys when they implement power management tools in their ugly stock ROMs. Guess what these power management tools do with notifications!
Sometimes (not always) you have to know how android is programmed in order to fight with power management. Especially, this is true with phones that run 6-7-8 versions of android.
I have 2 more or less modern phones in my family. They run on A10 and do not have these problems with notifications.
Yes, phone OSes and software can be annoying. But I don't think iOS is the solution.
Regarding the problem, I suppose you've already tried changing the sleep settings, but if not: maybe deviceidle whitelisting could be helpful.
vp1117 said:
I have 2 more or less modern phones in my family. They run on A10 and do not have these problems with notifications.
Click to expand...
Click to collapse
I never had these problems with Android 10.
So, yeah, it MAY be Android 11.
I am downloading the May update for my S21U. Let's see if this fixes it.
hkjo said:
Yes, phone OSes and software can be annoying. But I don't think iOS is the solution.
Regarding the problem, I suppose you've already tried changing the sleep settings, but if not: maybe deviceidle whitelisting could be helpful.
Click to expand...
Click to collapse
Even the folks in that thread are having mixed results.
I just ran the blanket OS-level command as described in my original post.
I haven't faced any noticeable depreciation battery life due to this.
nixnixnixnix4 said:
I never had these problems with Android 10.
So, yeah, it MAY be Android 11.
I am downloading the May update for my S21U. Let's see if this fixes it.
Click to expand...
Click to collapse
It doesn't.
The May update didn't fix this issue.
Isn't it true that whitelisting via ADB only DISABLES Battery Optimization for a particular app, and you can do the same thing via the Android interface? And we all know that turning Battery Optimization off doesn't do squat to get notifications sooner.
OR does whitelisting via ADB (supposed to) do something more powerful than disabling Battery Optimization? Thanks so much.
Looking forward to your reply
wgraz said:
Isn't it true that whitelisting via ADB only DISABLES Battery Optimization for a particular app, and you can do the same thing via the Android interface? And we all know that turning Battery Optimization off doesn't do squat to get notifications sooner.
OR does whitelisting via ADB (supposed to) do something more powerful than disabling Battery Optimization? Thanks so much.
Looking forward to your reply
Click to expand...
Click to collapse
AFAIK: Whitelisting a single app thru the UI and thru ADB has the same effect. I disabled battery optimizations on all apps and still faced a delay. Perhaps, Google will take care of this issue eventually. But, I doubt it.
But, yes, disabling deviceidle thru adb works as a full-proof solution.
I'm still testing to see if disabling "Android Adaptive Notifications" works.
Also, I wonder if there's a way to see if the phone received the email but just chose not to show us the notification.
nixnixnixnix4 said:
AFAIK: Whitelisting a single app thru the UI and thru ADB has the same effect. I disabled battery optimizations on all apps and still faced a delay. Perhaps, Google will take care of this issue eventually. But, I doubt it.
But, yes, disabling deviceidle thru adb works as a full-proof solution.
I'm still testing to see if disabling "Android Adaptive Notifications" works.
Also, I wonder if there's a way to see if the phone received the email but just chose not to show us the notification.
Click to expand...
Click to collapse
Sorry for the late response.
Thanks for confirming the adb whitelist and disabling battery optimization are the same.
I tried: adb shell dumpsys deviceidle disable
but I'm still getting delayed email notifications, once the device has been sleeping for 5-7 minutes.
I don't think Google will ever give freedom back to it's users. They want control. Years ago, I think Gmail had push notifications, but Google pulled that back. My guess is they want to reintroduce it in the future as a paid service because they felt they had very little in their gmail pipeline at the time. Google's favorability is declining, but I'd still take Android over IOS. I still use Google Voice. Other than that, I wouldn't have any Google accounts on my phone.
wgraz said:
Sorry for the late response.
Thanks for confirming the adb whitelist and disabling battery optimization are the same.
I tried: adb shell dumpsys deviceidle disable
but I'm still getting delayed email notifications, once the device has been sleeping for 5-7 minutes.
I don't think Google will ever give freedom back to it's users. They want control. Years ago, I think Gmail had push notifications, but Google pulled that back. My guess is they want to reintroduce it in the future as a paid service. My thought is, they felt they had very little in their gmail pipeline so they removed push notifications to reintroduce it at a later time. I hate Google, but I'd take Android over IOS at this point in time. I still use my Google Voice account. Other than that, I wouldn't have any Google accounts on my phone.
Click to expand...
Click to collapse
./adb devices
./adb shell dumpsys deviceidle disable
./adb disconnect
If that didn't work for you, go into the GMail app and look closely at the settings to see if there is something off.
Also, does disabling GMail and using Outlook instead work for you?
wgraz said:
I don't think Google will ever give freedom back to it's users. They want control.
Click to expand...
Click to collapse
The EU, Japan, and the US are all cracking down on Apple now. Google won't be able to control this beast too much for too long.
nixnixnixnix4 said:
./adb devices
./adb shell dumpsys deviceidle disable
./adb disconnect
If that didn't work for you, go into the GMail app and look closely at the settings to see if there is something off.
Also, does disabling GMail and using Outlook instead work for you?
Click to expand...
Click to collapse
I didn't use the: adb disconnect
Just "exit" the cmd and unmounted the phone.
I don't use the gmail app but have a gmail accounts ( in addition to other email accounts) I use through another email app. But every email app I try has this issue after the phone's been sitting for 5-7 minutes.
I mean, what is google trying to do? Save battery power to reduce mining of essential minerals for new batteries? Or they simply don't want people getting instant information?
We need someone with the expertise to check if the e-mail made its way to the phone or not.
This will tell us if the issue has to do with just notification display OR something with the internet/server.
nixnixnixnix4 said:
We need someone with the expertise to check if the e-mail made its way to the phone or not.
This will tell us if the issue has to do with just notification display OR something with the internet/server.
Click to expand...
Click to collapse
I was reading in this thread about PARTIAL_WAKE_LOCK
I asked if it was even possible if you can apply this PARTIAL_WAKE_LOCK to other apps.

Categories

Resources