question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Background status notification doesn't show up on Android 8

See original GitHub issue

Your 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

  1. 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:closed
  • Created 5 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
MaximeLassalleHubcommented, Jul 12, 2018

You can try this one : (ionic) cordova plugin add cordova-plugin-mauron85-background-geolocation@3.0.0-alpha.38

0reactions
stale[bot]commented, Mar 16, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Notifications Not Showing Up? 10 Fixes You Can Try
If restarting your phone didn't do the job, one of the most common reasons notifications don't show on Android is because of the...
Read more >
How to Fix Notifications Not Showing up on Android - Lifewire
Confirm you haven't restricted your app from running in the background. If you're not getting notifications from a specific app, the app might ......
Read more >
Control notifications on Android - Google Help
Silent: Your phone won't make a sound or vibrate. But the notification will show up when you swipe down from the top of...
Read more >
How to check notification history on your Android phone
Notification history shows alerts in chronological order, with the most recent at the top. However, the system doesn't offer a way to place...
Read more >
16 Ways to Fix Text Message Notifications Not Working on ...
Most Android OEMs are notorious for their aggressive battery optimizations. It will block the apps from running in the background, so you will ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found