Rapsssito / react-native-background-actions

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

App "keeps stopping" and crashes when I follow the example #187

Closed heysaf closed 1 year ago

heysaf commented 1 year ago

So I followed the example set out in examples/backgroundExample and when I ran it, both "Trying to start background service" and Successful start!" was printed. But then my app crashed and "keeps stopping" and the notification description does not change. No error was printed on the console.

Am I missing something here? I am also new to mobile development overall so apologies for any miscommunication or misunderstanding.

heysaf commented 1 year ago

Nevermind, I was being a complete moron and forgot to put:

<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />

into the android manifest, My bad 🤦‍♂️