react-native-background-actions icon indicating copy to clipboard operation
react-native-background-actions copied to clipboard

background service is not running anymore when app minimized

Open juntiapps opened this issue 2 years ago • 4 comments

background task is not running anymore when app minimized. it still running in emulator. but not running in real device. RN 0.72, device poco x3

juntiapps avatar Dec 06 '23 10:12 juntiapps

Bump message for issue, affects me as well.

React Native 0.72, Samsung Galaxy S23

onderbakirtas avatar Dec 28 '23 14:12 onderbakirtas

Same here React native 0.72, Redme Note 10 pro

Sahilcf avatar Jan 01 '24 14:01 Sahilcf

same issue, on android 12

alan-nugraha avatar Jan 07 '24 08:01 alan-nugraha

Hi, I've spent hours debugging why the service didn't start after upgrading React Native.

In the end, I've figured out that I needed to add an exclusion in the proguard file:

# React Native Background Actions
-keep public class com.asterinet.react.bgactions.** {*;}

Hope this works for you too.

apapalillo avatar Jan 23 '24 08:01 apapalillo

This is common, as the OS has absolute control over the background processes of the device. See https://github.com/Rapsssito/react-native-background-actions/issues/22#issuecomment-628737527

Rapsssito avatar Jul 09 '24 09:07 Rapsssito