jamesisaac / react-native-background-task

Periodic background tasks for React Native apps, cross-platform (iOS and Android), which run even when the app is closed.
MIT License
1.1k stars 110 forks source link

Not allowed to start service Intent #38

Open emretekince opened 6 years ago

emretekince commented 6 years ago

It's not working on Android 8 and above. Background start not allowed: service Intent java.lang.IllegalStateException: Not allowed to start service Intent

Tketa commented 6 years ago

@emretekince Android 8.0 added limitations to background tasks execution: https://developer.android.com/about/versions/oreo/background which means we cannot start the background service this way anymore

Perhaps you could rename your PR "Add support for Android 8.0.0" ?

cristianocca commented 6 years ago

Is this still an issue? Couldn't find issues related to android 8 and headless-js.

Tketa commented 6 years ago

@cristianocca This library is not using react-native-background-fetch on Android, so it will not be working on Android 8+

I suggest you just use react-native-background-fetch and not this library if you're targetting Android 8+