Skip to content

HeadlessJs doesnt start javascript task if the app is closed #22238

@gvetsa

Description

@gvetsa

Environment

React Native Environment Info:
System:
OS: Windows 10
CPU: x64 Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz
Memory: 7.63 GB / 15.89 GB
Binaries:
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 3.1.0.0 AI-173.4907809

Description

Describe your issue in detail. Include screenshots if needed. If this is a regression, let us know.
I am starting HeadlessJs task using broadcast receiver and listening for sms messages, which works fine completely when the app is in foreground or in background but if the app is closed then HeadlessJs task doesnt fire or trigger.

Reproducible Demo

Let us know how to reproduce the issue. Include a code sample, share a project, or share an app that reproduces the issue using https://snack.expo.io/. Please follow the guidelines for providing a MCVE: https://stackoverflow.com/help/mcve

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions