RNBackgroundActionsTask.onStartCommand

Open
#238 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, java, react-native
Domain
backend, mobile

Research direction

Start by tracing RNBackgroundActionsTask.onStartCommand and the foreground service startup path for Android 13 and 14. The report identifies a ForegroundServiceStartNotAllowedException when the service starts in the background, but gives no reproduction steps or expected behavior; determine the triggering conditions and an appropriate fix before making changes.

Written by the indexing model from the issue text.

Description

Fatal Exception: java.lang.RuntimeException
Unable to start service com.asterinet.react.bgactions.RNBackgroundActionsTask@cedd488 with Intent { cmp=com.myapp/com.asterinet.react.bgactions.RNBackgroundActionsTask (has extras) }: android.app.ForegroundServiceStartNotAllowedException: Service.startForeground() not allowed due to mAllowStartForeground false: service com.myapp/com.asterinet.react.bgactions.RNBackgroundActionsTask.

I am getting this error on Firebase Crashlytics for some time.
Using the latest version of react-native-background-actions 4.0.1.
All the crashes are occurring in background mode of the devices on android 13 and android 14.

Anyone can help in this ?

Dominant language
Java
Stars
941
Forks
145
Avg merge
1d 23h
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Rapsssito/react-native-background-actions

All issues in Rapsssito/react-native-background-actions

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.