Cordova-plugin-background-geolocation: How disable notifications in Android?

Created on 12 Sep 2016  路  4Comments  路  Source: mauron85/cordova-plugin-background-geolocation

We need to disable background-geolocation notification message.
Can the API provide a configuration variable to disable notification?

Environment

  • Platform: Android

    Expected Behavior

Disable notification message

duplicate question

Most helpful comment

@mauron85 Thank you for this amazing plugin. I understood I could remove notification bar using startForeground: false. However, according to doc, If false **location service will not be started in foreground** and no notification will be shown. Does this mean tracking GPS stops while the user is in foreground? Or does it just means that notification bar does not start? I would like to track the user's location both in foreground and in background.

All 4 comments

You can disable with option startForeground: false

@mauron85 Thank you for this amazing plugin. I understood I could remove notification bar using startForeground: false. However, according to doc, If false **location service will not be started in foreground** and no notification will be shown. Does this mean tracking GPS stops while the user is in foreground? Or does it just means that notification bar does not start? I would like to track the user's location both in foreground and in background.

Was this page helpful?
0 / 5 - 0 ratings