Skip to content

THREAD WARNING: exec() call to BackgroundModeExt.foreground blocked the main thread for 41ms. Plugin should use CordovaInterface.getThreadPool(). #578

@santiagovasquez

Description

@santiagovasquez

Hello everyone, I have this problem.

when I call cordova.plugins.backgroundMode.moveToForeground(); It always works for me the first time, then I enter another application, for example Facebook, and this message is displayed in the logcat, what is it due to or how can I solve it?

Screen Shot 2023-01-09 at 8 50 25 PM

Attached video of my problem with moveToForeground():
https://drive.google.com/file/d/1SQJ-6FNQ2Nr0nZxw7JBYwhGkYt9D33R_/view

VIDEO SUMMARY:

  1. I have the app open, then I exit.
  2. when running postman a service is sent and the app is brought to the foreground (which is the correct way)
  3. then I leave the app and enter facebook. I run postman and the app doesn't open in the foreground anymore (this is the bug I want to fix).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions