Rapsssito / react-native-background-actions

React Native background service library for running background tasks forever in Android & iOS.
MIT License
818 stars 117 forks source link

("RNBackgroundActions"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this. #218

Open Qurat-ul-ainn opened 7 months ago

Qurat-ul-ainn commented 7 months ago

getting this warning even by using this pakage. its working for android but not for iOS

mvinicius1 commented 6 months ago

did you solved this? i am facing the same

narayanlava commented 5 months ago

in AndroidManifest.xml replace with this

<service android:name="com.asterinet.react.bgactions.RNBackgroundActionsTask" android:exported="false" android:foregroundServiceType="location" tools:replace="android:foregroundServiceType"/>