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

Not allowed to start service Intent

Open emretekince opened this issue 7 years ago • 3 comments

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

emretekince avatar May 11 '18 08:05 emretekince

@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" ?

Tketa avatar Jul 11 '18 08:07 Tketa

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

cristianocca avatar Jul 28 '18 21:07 cristianocca

@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+

Tketa avatar Jul 29 '18 20:07 Tketa