Background Mode is running for only few(probably 5 mins) minutes in Android 8 and Android 9 · Issue #463 · katzer/cordova-plugin-background-mode · GitHub

Background mode not working on android 8.0.0. working on earlier versions · issue #400 · katzer/cordova-plugin-background-mode

In my case, even with the two plugins, activating the window.powerManagement.dim mode, but putting the app in the background and stressing the system, the android paused the application (moto g5). If the app stays in the foreground, keeping the “dim” state on, it really does not stop. But I did not find a relation of the “dim” state with a supposed response of the system in killing or not the application when in the background. If the system needs resources, it will kill! Even because, from what I noticed, when you put the application in the background, this state is paused, only resuming if it is to the foreground again. But I pray that my ignorance is wrong.

I launched the solution for beta testers and I will monitor whether the report of problems with “normal” use decreases. I’m very fond of it, believe me!

I’ve been trying to get around this for over a year. As much as Cordova’s own documentation does not recommend this and imposes this limitation, we try to stubbornly. I have combined all kinds of plugin and behavior. But I am more and more convinced that there really is nothing that can be done other than trying to develop a service through Plugin and with the methods directly in Java. Google Maps itself, for example, google native app, by not using a service, if put in background mode and stressing Android with the use of links and camera, it is dead, only maintain the state of form really stable in ” acquire “(foreground and with the screen attached). Why would mine be any different?

Unfortunately, because of the limitations of the platform and the way it works, I do not see today how this so-called background services plugin can be developed and integrated with the webview JS, where it installs and submits to the javascript methods as a plugin any . It would be a kind of plugin itself, where your service is really built within the JAVA environment.

Maybe in a future version of Cordova? Do not know!

I am guided by this content:
https://www.red-folder.com/blog/phonegap-android-background-service

Conditions

These are rather technical. While most are pretty self-explanatory, keep in mind that any condition means that a switch isn’t always available.

  1. The constant OS_WIN must be defined.
  2. The constant BUILDFLAG(ENABLE_PLUGINS) must be defined.
  3. The constant !BUILDFLAG(IS_OFFICIAL_CHROME_CLEANER_BUILD) must not be defined.
  4. The constants OS_FREEBSD, OS_LINUX and OS_SOLARIS must be defined.
  5. The constant OS_CHROMEOS must be defined.
  6. The constant OS_MAC must be defined.
  7. The constant OS_ANDROID must be defined.
  8. The constant OS_APPLE must be defined.
  9. The constants OS_CHROMEOS and OS_MAC must not be defined, and the constant OS_POSIX must be defined.
  10. The constant OS_LINUX must be defined.
  11. The constant OFFICIAL_BUILD must not be defined, and the constant BUILDFLAG(ENABLE_PRINT_PREVIEW) must be defined.
  12. The constants USE_OZONE and USE_X11 must be defined.
  13. The constants !BUILDFLAG(IS_LACROS) and OS_CHROMEOS must not be defined, and the constant OS_LINUX must be defined.
  14. The constant OS_POSIX must be defined.
  15. The constants OS_LINUX, OS_MAC and OS_WIN must be defined.
  16. The constant OS_FUCHSIA must be defined.
  17. The constant OS_CHROMEOS must not be defined, and the constant OS_LINUX must be defined.
  18. The constant ENABLE_IPC_FUZZER must be defined.
  19. The constant DCHECK_IS_ON() must be defined.
  20. The constant USE_CRAS must be defined.
  21. The constants OS_ANDROID and OS_CHROMEOS must not be defined.
  22. The constant BUILDFLAG(ENABLE_DOWNGRADE_PROCESSING) must be defined.

How to use a command line switch?

The Chromium Team has made a page on which they briefly explain how to use these switches.

Logcat on huawei honor 8? background debug password?

recently I aquired a Honor 8 and updated it to EMUI 5. When I started testing my projects, I noticed that nothing was shown at the logcat, i searched and it was a common problem in Huawei Smartphones that can be solved by dialing *#*#2846579#*#*, then goiing into Background setting->Log settings, activating the App log and restarting the device.

The problem is that this method doesn’t work in my case (neither if I don’t restart the device). I figured that it was because when I went to the Background debug, it appears to be closed, but when I hit on open it asks for a password.

Anyone knows what the password is or how can I manage to activate the ApLog?

Оцените статью
Huawei Devices
Добавить комментарий