vikeri / react-native-background-job

Schedule background jobs in React Native that run your JavaScript when your app is in the background/killed.
MIT License
747 stars 109 forks source link

RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground() #162

Open ihardlight opened 4 years ago

ihardlight commented 4 years ago

BackgroundJob.register({ key: 'key', job () => ... }) BackgroundJob.schedule({key: 'key', allowExecutionInForeground: true}) But got RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground()