Background status notification doesn't show up on Android 8
See original GitHub issueYour Environment
- Plugin version: 2.3.5
- Platform: Android
- OS version: 8.0.0
- Device manufacturer and model: Moto Z (Br)
- Cordova version (
cordova -v
): 8.0.0 - Cordova platform version (
cordova platform ls
): 7.0.0 - Plugin configuration options:
const config: BackgroundGeolocationConfig = {
desiredAccuracy: 100,
stationaryRadius: 4,
distanceFilter: 4,
debug: true,
stopOnTerminate: true,
interval: 30000,
notificationTitle: 'Title',
notificationText: 'Content',
notificationIconColor: '#ffcc00',
pauseLocationUpdates: false
};
- Link to your project: Under development (local)
Context
I’ve got an issue by running the plugin on Android 8. The notification doesn’t show up on the notification bar. There’s a fixed notification telling the user that the app is consuming battery instead. Even though I set the title, text, icon color, and stuff it doesn’t work. I figured out that on Android 7.1 or bellow it does work fine. I could even change the targetSdkVersion to 25 or bellow so it works on Android 8 but my problem is that Google Play Store will start requiring targetSdkVersion 26 in august. I need to know if there’s an update to solve this or even a way to remove this notification on Android 8. Everything else works fine for me.
Expected Behavior
The “consuming battery” notification should not appear.
Actual Behavior
Should be a notification to tell the user that the app is running on background
Possible Fix:
I need to know if there’s an update to solve this or even a way to remove this notification on Android 8.
Steps to Reproduce
- Simply run the project on Android 8
Context
It’s showing the wrong notification.
Debug logs
There’s no logs for this
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (2 by maintainers)
Top GitHub Comments
You can try this one : (ionic) cordova plugin add cordova-plugin-mauron85-background-geolocation@3.0.0-alpha.38
This issue has been automatically closed, because it has not had recent activity. If you believe this issue shouldn’t be closed, please reopen or write down a comment requesting issue reopening with explanation why you think it’s important. Thank you for your contributions.