Problem with Firebase based apps - Android Q&A, Help & Troubleshooting

After spending some time developing applications, I made an application that makes use of O's notification channels. I used Firebase's job dispatcher to schedule the notification firing service. The first time I deploy the application on my smartphone (I believe I had a mistake there), I suddenly saw that Google Play Services crashes, the app crashed and the whole system rebooted shortly.
When it booted up again, weird things started happening like launcher crashing and restarting a couple of times, various applications crashing for no reason (I believe they're related to Google Play Services, or Firebase? dunno) so I thought that my (only thing) google-play-services related code concerning the service scheduling had to do with it, I deployed a new build that just cancels the service with the same service tag used.
Everything seemed fine, for the crashing mania stopped and everything was less frustrating, and finally I could open Settings > Apps again without crashing the Settings app. But lately it started happening again with google play services, I got mad and uninstalled the application causing the problem, but now any application that uses google play services crashes on start and are unusable at all. My phone is semi-usable and this is disgusting right now.
I'd be glad if anyone could help me fix this problem either with Firebase job dispatcher, Google Play Services or the whole system/phone with the least losses as possible.

Related

"Unfortunately, Google Play Services has stopped" - Google has abandoned older phone

"Unfortunately, Google Play Services has stopped" - Google has abandoned older phone
So, just Google this error and you will find no shortage of users complaining about this error message.
Heck check out the latest reviews on the Play Store: play.google.com/store/apps/details?id=com.google.android.gms&hl=en_GB
For some it's a couple times a day, for others a few times a hour, for others (like me) it's 4-6 times per minute. Rendering the phone completely unusable because the message locks up the UI. It happens right after a clean reboot, and happens regardless of force stopping/disabling the service! Clearing the data and cache makes no difference for me and the vast majority of users experiencing the problem. Removing all Google accounts and re-synching makes no difference. Downgrading and upgrading the services makes no difference. The only thing that cures it is to completely uninstall all updates to the service and let it ***** about being old, but then every other Google app complains it cannot run because Play Services needs updating. What happened to ethical and modular development standards Google???
I have a Samsung S3 (GT-I9300) running Android 4.3. Kernel 3.0.31-2735602. Build number JSS15J.I9300XXUGNH4. I had this issue on an older ROM and also on a custom ROM I installed in the distant past. The only way I was able to fix the problem was by performing a clean wipe. I am NOT prepared to do that for the 3rd time this year. The phone is perfect for my needs but rendered completely unusable by this devil service called Google Play Services. This service and the way it runs, updates and crashes displays no sense and logic.
Anyone have a de-facto solution for curing this?
I've gone to apkmirror and brought all versions of Google Play, Play Services and Google Apps to the versions they were From Feb 2015 and played with every combination. It makes no difference.
NJ247 said:
So, just Google this error and you will find no shortage of users complaining about this error message.
Heck check out the latest reviews on the Play Store: play.google.com/store/apps/details?id=com.google.android.gms&hl=en_GB
For some it's a couple times a day, for others a few times a hour, for others (like me) it's 4-6 times per minute. Rendering the phone completely unusable because the message locks up the UI. It happens right after a clean reboot, and happens regardless of force stopping/disabling the service! Clearing the data and cache makes no difference for me and the vast majority of users experiencing the problem. Removing all Google accounts and re-synching makes no difference. Downgrading and upgrading the services makes no difference. The only thing that cures it is to completely uninstall all updates to the service and let it ***** about being old, but then every other Google app complains it cannot run because Play Services needs updating. What happened to ethical and modular development standards Google???
I have a Samsung S3 (GT-I9300) running Android 4.3. Kernel 3.0.31-2735602. Build number JSS15J.I9300XXUGNH4. I had this issue on an older ROM and also on a custom ROM I installed in the distant past. The only way I was able to fix the problem was by performing a clean wipe. I am NOT prepared to do that for the 3rd time this year. The phone is perfect for my needs but rendered completely unusable by this devil service called Google Play Services. This service and the way it runs, updates and crashes displays no sense and logic.
Anyone have a de-facto solution for curing this?
Click to expand...
Click to collapse
Just set the location to "Device only" instead of "High accuracy", this stops the error completely until google fixes the issue...
EDIT: BTW, this has nothing to do with older phones, this happens on my Nexus 6...
luizffgarcia said:
Just set the location to "Device only" instead of "High accuracy", this stops the error completely until google fixes the issue...
EDIT: BTW, this has nothing to do with older phones, this happens on my Nexus 6...
Click to expand...
Click to collapse
Thanks but the setting you describe is not present on Android 4.3.
luizffgarcia said:
Just set the location to "Device only" instead of "High accuracy", this stops the error completely until google fixes the issue...
EDIT: BTW, this has nothing to do with older phones, this happens on my Nexus 6...
Click to expand...
Click to collapse
Source?
markus4000 said:
Source?
Click to expand...
Click to collapse
I am using this solution in my Nexus 6 right now... And really, its all over xda... Dont have a specific link right now.
luixffgarcia is right. I have looked everywhere and this was the only thing that solved that problem. Oddly enough, I got a message from Sprint earlier this week saying that if I didn't upgrade to lollipop they would disconnect my service.
Yes guys, there are solutions that work for some people but it's totally dependent on the version of Android. Generally, the older the version of Android (in my case 4.3 running on a Galaxy S3), the less likely any of these fixes are going to work. I do not even have the option that is mentioned above.
In the last few days I've seen the number of 1 star votes for Google Play Services jump drastically.
Well just FYI
I use XPosed on my LG G2 Android 5.0.1 and the module Amplify caused the issues for me. It's not the entire module but some wakelock that I had blocking enabled. This worked previously so it seems like they updated something in their library that would cause it to crash if the wakelock is blocked. For now I just reset Amplify to default settings and I dont have any issues anymore.
Hope this helps.

gapps eating too much

Hello guys
I have an old pronlem -- all the gapps I have tried(slim, pico, delta) are eating too much at all the roms ive used(purity, sultan, orion os, aosparadox, exodus)
Even amplify does not help.
What can you reccomend?
To be precise, its Google Play Services that's eating away at your battery, the recent updates have increased this threshold even more so, I'm pretty blank on how to tackle this, maybe someone else can help.
Joshwin Aranha said:
To be precise, its Google Play Services that's eating away at your battery, the recent updates have increased this threshold even more so, I'm pretty blank on how to tackle this, maybe someone else can help.
Click to expand...
Click to collapse
Well, I have tried almost everything and I can't blame anyone except google for this. Peculiar thing about this is that it happens on mobile data, almost never on wifi. Mobile Radio is active half of the times. You will see google play services, gmail, google app and other google apps in battery stat.
What I have tried so far: amplify, greenify, all possible location combo, blocking alarms, wakelocks, wiping google play services, google accounts, blocking permission to google apps. Most of these things broke functionality .
Solution: Just ignore. There are various threads on google forums,xda and not even a single working solution. If someone finds it, I am keen to try that (unless it asks for my credit card).
saurabh40629 said:
Well, I have tried almost everything and I can't blame anyone except google for this. Peculiar thing about this is that it happens on mobile data, almost never on wifi. Mobile Radio is active half of the times. You will see google play services, gmail, google app and other google apps in battery stat.
What I have tried so far: amplify, greenify, all possible location combo, blocking alarms, wakelocks, wiping google play services, google accounts, blocking permission to google apps. Most of these things broke functionality .
Solution: Just ignore. There are various threads on google forums,xda and not even a single working solution. If someone finds it, I am keen to try that (unless it asks for my credit card).
Click to expand...
Click to collapse
Well the thing is, Google Play Services (GPS from here on out), handles literally everything that Google Apps do on your device, from Geo-Positioning (Maps) to Sync (SyncAdapter) to Emails (Gmail/Exchange) to everything. To put in view, apps that crash on our devices, give a pop up, saying "XYZ apps has stopped working" and gives us 2 options "OK" & "Report", now if you "Report" the error, you'd think the report (and device logs!) go to the developer of the app, Yes ? NO! These are sent to the Almighty Overlords at Google, aside from the data-mining issue here, this just astonished me beyond belief. So that being said, what my personal view is, Google is, like every new Android Iteration, upgrading the old apps to use the Android N-ish architecture & stuff, and maybe, just maybe that this new stuff that's being implemented is better off in Android N, and not in LP or MM. But then again, I might be horribly wrong about all of this
Joshwin Aranha said:
Well the thing is, Google Play Services (GPS from here on out), handles literally everything that Google Apps do on your device, from Geo-Positioning (Maps) to Sync (SyncAdapter) to Emails (Gmail/Exchange) to everything. To put in view, apps that crash on our devices, give a pop up, saying "XYZ apps has stopped working" and gives us 2 options "OK" & "Report", now if you "Report" the error, you'd think the report (and device logs!) go to the developer of the app, Yes ? NO! These are sent to the Almighty Overlords at Google, aside from the data-mining issue here, this just astonished me beyond belief. So that being said, what my personal view is, Google is, like every new Android Iteration, upgrading the old apps to use the Android N-ish architecture & stuff, and maybe, just maybe that this new stuff that's being implemented is better off in Android N, and not in LP or MM. But then again, I might be horribly wrong about all of this
Click to expand...
Click to collapse
Though you are right about first half (can't say much about later part, as I don't understand why it should make google services go crazy )
This problem traces back to Kitkat and probably jell bean but only thing which I do not understand is why only in mobile data ?? I don't see any of them popping up in wifi .
Just when I thought I could ignore it, it started non stop feast on mobile data. I had to stop background data for this. Damn you google.
try A-gapps, it allows battery optimization for google play services (open-gapps etc don't allow this)
it helped me to have less battery drain by google play services
http://forum.xda-developers.com/android/general/gapps-gapps-6-0-1-minimal-t3276606
Yeah... Mine are pretty obese too

S2 GT-i9100 Google Play Services randomly causes *unimaginable* battery drain

Hello Everyone
Start off by saying I have little to no Android knowledge (rooting, custom ROMs, modding or programs for such things), however I have basic knowledge of linux and the command line.
My S2 GT-i9100 rapidly heats up and its battery is *unimaginably* and randomly depleted by Google Play Services and quickly renders it useless as a device. I want to fix it and not turn it into a brick.
I got the phone from a family member from Europe (I live in Australia), who had used it for about 6 months. When I got it, it was already unlocked and rooted by some phone place over there. I didn't have any problems.
Recently however Google Play Services (size 127 MB) has randomly started doing *something*, this despite no mobile broadband and almost no internet usage from wifi either to invoke it. Considering it is on ICS (no idea how to upgrade, or whether i should upgrade, or what to upgrade to) it has to be either a bug or a virus considering all those Android exploits in the news recently.
To fix it whenever it occurs, I clear the RAM twice then go into the list of Applications and Force Stop Google Play Services (more than once if the button isn't greyed out).
I tried to disable the components of Google Play Services(listed below) but the problem continued AND it erased the names of my contacts meaning I was left with a bunch of numbers with no name.
Google Bookmarks Sync
Google Play services
Google Services Framework
Google Account Manager
Network Location
Google Contacts Sync
Some details:
Wi-Fi use only (and nonexistent nowadays), no mobile broadband
GT-i9100 running Android 4.0.3 (ICS)
ROM, unknown if original / custom, has a T-Mobile animation screen on bootup and shutdown
It also has a yellow triangle at the bottom when I turn it on (don't care about cosmetics)
Rooted with CWW (no idea about how that works or what it means) and SuperSU (i do know how root user works in linux)
Root Browser + Terminal Emulator installed (my doing)
Google Authenticator + Microsoft Account Authenticator (i don't wanna screw up anything with these, got codes for google authenticator, need to research microsoft)
Call history and text messages (I would like to keep these and would like to know how to backup the phone first of all)
So I'm looking to figure out what would be the best course of action to fix this without screwing up anything. I know the standard solution would be a factory reset but I don't have any backups (also don't know how to), don't want to brick the phone and don't know what it would actually do, and even if it worked, how to root the phone again.
Any help would be greatly appreciated.
Hi,
i had the same massive battery draining. Problem was Google Fit App. After uninstalling the app the battery draining is gone. I think this app prevented the google services to fall in "doze" mode. Perhaps you have a similar app!?

Apps' and Games' Crashes & Other Issues

*** I have no choice than to beg for help. So please please please help me. ***
So I'm going to tell you girls/guys the whole story. It's going to be a long one, so bear with me. I just didn't wanted to leave any info.
I've been using MIUI for a long while, in the beginning it was all great. But as I started installing more & more apps, I started having issues/lags while playing games. Then there is MIUI's ram management issue, i.e. If I had to run a heavy game/app, I had to clear out RAM(you know the special feature in MIUI). Other than I had network issues. For ex : Whenever I played PR Legacy Wars(internet intensive game), I suffered from a lot of LAG. And Tekken(officially by Bandai Namco on Play Store) also, Force closed once or twice.
So to fix all this, I decided to go with a Custom ROM, basically because of the RAM Management issue.
First I started using CM 14.1. In the beginning the results were good. Like the internet problem was fixed to 100%, PR ran nearly perfect. Other than that there was no RAM issues. But as I started installing more apps, I started having crashes. First it happened with HQ Trivia, then with C.A.T.S. & PR Legacy Wars.
What happened to each app individually :-
HQ Trivia - Every time I play a live game, the app would crash multiple times given that I tap on ''wait'' and phone keeps on processing the app, when I get the message "App stopped working".
C.A.T.S. - This is neither a graphic nor internet intensive game, but still when I was typing something in group chat, the whole system crashed, the phone rebooted from the Boot Animation not from MI logo.
PR Legacy Wars - This game is a bit graphic intensive & internet intensive for sure. Same like when I was typing something in group chat, the same thing happened as mentioned above. Keep in mind that crash should've happened when there was more load on phone like during a battle.
And some very heavy crashes. Like when I try to switch accounts between guest & usual, the system crashed so hard, that I couldn't use it, Not even the hard buttons, like power button won't even turn the screen on. The vibration motor started spinning and wouldn't stop. I literally have to open the phone and disconnect the battery cable.
So having no choice, I installed NOS N, but I haven't tried the account feature in it, in fear of what happened earlier to CM 14.1, As I was able to recover through that heavy crash 3-4 times, but I guess it was the 5th time, I wasn't able to get into the system and lost all data. Why I feared? Cause I'm having similar issues as in CM 14.1, not all of them but similar.
SO after installing NOS N, these are the issues I'm having :-
HQ Trivia - Same app crashing while playing live games.
Sonic Forces - Whenever I watch an AD, if it's longer than like 5 or 10 seconds, app would crash & restart. If it's small or interactive or even non-interactive, if I keep tapping on the screen, app doesn't crashes, otherwise it does.
Twitter - Kept crashing(first installed through TiBa). Issue fixed after I installed it through Play Store.
YouTube - Force closed once or twice. Sometimes when I'm watching a video, when I press back then tap on Home/Trending etc it shows white blank.
Games - If music is playing in background, whenever I exit the app, at the end, the sound kinda gets laggy/screechy.
It's not been that long since I've been using NOS N. And I didn't do any hard testing especially that account feature. So the whole OS hasn't crashed yet. But still these issues hurt in long term, especially the HQ problem. Also all these apps were first installed through TiBa backup, then I installed them through Play Store, so that there's no compatibility issue.
As this OS has a feature to kill apps by holding back button. If sometimes I have lag in PR Legacy Wars, it get fixed by killing & opening it again.
What do I need from you guys?
To tell me if this a hardware or software related problem. I can create some report or log, so you could help me better. Just tell me how to do it? Meanwhile I'll try installing other OSs.
PS: I may not reply immediately, but I will reply.

What provides the Android sync service?

I'm on Android 8 (SuperMan-ROM), and I used TitantiumBackup to freeze all apps I don't need/use, especially all the Google and Samsung tracking stuff. This has worked well for me for years.
But then I ran into a problem wherein the sync framework wouldn't work anymore. I may have finally resolved this by unfreezing all apps, rebooting, wiping Dalvik and caches, and then refreezing the apps. Now sync works again, even across reboots. Previous attempts at wiping Dalvik&caches to fix this (without unfreezing) did not yield the desired result.
In order for me to understand what's going on, I need to understand what the sync framework is, and what provides it. I mean, I am certainly not freezing what seems like core Android services, but maybe the sync framework is included in some other service that just doesn't have a name indicating that?
Do you have an idea which app/service actually provides the functionality behind the Android sync service?

Categories

Resources