Firebase Cloud Messaging service stops working until reboot - Android Q&A, Help & Troubleshooting

I've set up Macrodroid on my Doogee S40 with a webhook. I noticed that after some time my macro stopped working and started investigating. I have come to the conclussion that there is an issue with the Firebase Cloud Messaging service (which Macrodroid uses for webhook communication with the phone), mainly because not only my macro stops working but also Gmail notifications, for example. Also, when I reboot the phone, it starts working again.
I think that the Doogee S40 uses pure Android 9, and I have disabled every optimization option I could find so that nothing gets shut down (or shouldn't get), but no improvement.
Does anybody know what could be happening or, even better, how to fix it?

up

Related

GPS position locking on Androids for days

Hello everyone!
We have an fleet management app that runs continuous background updates every 1 minute using an Android service. We are seeing that sometimes the devices are failing to receive new GPS locations, and continuously report that they are at one location, when they are actually somewhere else. You can imagine this doesn't work well for a fleet management app. Rebooting the device seems to rectify the problem in the short-term. It also doesn't happen on every phone, even if they are the same model with same fw.
Any ideas? Thanks!

wifi and mobile data disconnects when screen goes off even with wifi ALWAYS ON mode

My wifi and data connection disconnects when screen goes off on my huawei ascend mate 2. For samsung phones it can be solved with secret codes like ##0011# but for huawei phones the secret codes are not working. or do you know a working secret code on hardware level for this? my power save mode is off. wifi is set on always on mode. auto synchronisation is on. my apps can all run in background. So I have set off all possible energy saving option for all apps. besides I have downloaded apps to keep wifi always on. but when I put it on always on mode on this app. It mentions that the wifi set on always on mode. but after 2 seconds I open the app (wifi always on app) it says that the wifi is on saving mode and not in always on mode. So there is another more dominant program (probably the huawei custom ROM) who has more privileges than a normal app so that it avoids that wifi is on always on mode.
Sometimes even when the screen is on, viber whatsapp does not receive calls or messages you should launch the app to receive calls and messages. you would say that it is a synchronisation problem. No. No. sync is on for all accounts. all accounts have full access on all my data and on the battery. All settings about battery saving options are set off.
I have sort of the same issue. I use KIK to talk to a lot of friends and on other phones I've had (LG G3 previously), I could load up the task manager and clear away all apps and it had no effect on getting messages. Now, with the HAM, if I clear away running programs, including KIK, even though I have KIK set as a protected app, I will not get any messages and people who send me messages say it stays on S (sent) as opposed to D (delivered). If I clear out all running apps and then load KIK up again before turning off the screen, the messages get delivered and I get notification. It's a little annoying, but keeping the program I want to receive notifications, running, seems to solve the issue for me.

Android Auto - Total disastor

Has anyone else had issues with Android Auto and this phone?
It's a complete disaster.
Google Assistant doesn't stay as the default Assistant app. It stops being the default app after two minutes so you can't even use Google Assistant on Android Auto.
Not to mention, Android Auto completely freezes in your dashboard screen if you use it for more than three minutes.
It's an absolute disaster on my end.
How has it been for you guys?
On my nex with global rom and VW touareg all is working fine. Maybe problem is with chinese devices?
Maybe... I am using the Chinese device
Same on Global Rom... Android Auto "restart" after 5min of utiliazation...
Have been using Android Auto from the day I got the phone and I must report that the above issues haven't ever surfaced.
What does happen regularly is that the music starts playing via the phone speaker on hanging up a phone calls. That's really annoying and requires disconnecting the phone from usb and reconnecting.
Anyone else facing this issue?
Bug AndroidAuto
I have the same problem, I use the Phone in Brazil with Portuguese PT (not BR) and the App seens restar when I use Waze or Maps.
Eternia said:
Same on Global Rom... Android Auto "restart" after 5min of utiliazation...
Click to expand...
Click to collapse
Have you found a fix for this? Happens to me too, Android Auto restarts every 5 mins
Can't get Android Auto to see my car at all.
Android Auto/ settings/ connected cars/ doesn't even see my Kia Forte although after much work I was able to get the Bluetooth to connect to the car, so my contacts list and phone and music are accessible on the car system. I had no problems connecting with my prior Motorola MOTO G5 Plus.
My Global edition is working perfectly with Android Auto in my Hyundai. Make sure you're using a quality USB C cable.
I've had tons of problems with Android Auto on other phones though. A lot of times, clearing the app data helps it get going again.
background power consumption
For Chinese version, make sure you allow high background power consumption for google maps or any other navigation and music apps. Since when you are using Android Auto, those apps were actually running in the background and the phone will treat them as suspicious apps and close them. This can be done in battery settings.

Disable Doze function entirely

I have tried now on two newer Android phones (Huawei Mate 20 with Android 10, Samsung Galaxy A7 2018 with Android 9) what happens if I track my position with GPS and then stop for 30+ minutes.
The result is every time, on both devices, that the GPS signal is lost after stopping for 10-30 minutes, and it is not regained without manually waking up the phone (wakeup Apps don't work, moving again doesn't work).
This happens with all tracking apps I've tried (about 10); I tried the different location modes; I have turned off ALL options which are for power saving, for all apps; I even deinstalled PowerGenie and the SystemManager on the Huawei device via ADB. Therefore, this is definitely NOT a problem of settings, nor of a specific firmware.
I now suspect that the aggressive "Doze" feature that was introduced in Android 6 is responsible for this. So is there any way to completely disable it?
I want that GPS tracking will continue regardless of whether I move or not, will always try to reconnect when signal is lost, until the battery is at 5% or less - without me touching the phone even once after starting the tracking app.

My android app stops sending data after a day or two

Hello fellow developers,
I am having trouble with an Android app I am working on that is programmed to send GPS data to a web service every 2 hours. The issue is that after about a day, the service appears to be interrupted on the phone, and data is no longer sent.
To troubleshoot this issue, I have tried the following with no success:
I have checked the app for error messages or exceptions, but none are being thrown when it stops sending data to the web service.
I have set an alarm to see that keeps the app working in non-interactive mode. It works for a few days and then stops again even with the alarm set and going off everyday.
I have checked the web service logs, but there are no errors or issues on that side that would prevent the data from being received.
I have tested the app on multiple devices, and the issue occurs mostly in Sony Xperia, Samsung S22 etc.
I have tried different intervals for sending the GPS data to the web service (e.g., every 10 mins), but the issue persists.
I have tried wakelock/caffiene apps to keep the CPU running.
All Android settings are set to not let the app go to sleep and to ignore battery optimization for my app, and it is also a foreground service.
I am wondering if anyone has any insight into what could be causing this issue and how to fix it? I appreciate any help or advice you can offer!

Categories

Resources