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.

notificationsEnabled false is not working

See original GitHub issue
  • Plugin version: 3.0.0-alpha.45
  • Platform: Android
  • OS version: 9.0
  • Device manufacturer and model:
  • Running in Simulator: yes
  • Cordova version (cordova -v): 8.1.2 (cordova-lib@8.1.1)
  • Cordova platform version (cordova platform ls): android 7.1.4
  • Plugin configuration options: locationProvider: window.BackgroundGeolocation.DISTANCE_FILTER_PROVIDER, desiredAccuracy: window.BackgroundGeolocation.MEDIUM_ACCURACY, stationaryRadius: 1, debug: false, distanceFilter: 1, stopOnTerminate: false, startOnBoot: true, startForeground: true, notificationsEnabled: false, notificationTitle: “test title”, notificationText: “test text”, notificationIconColor: “#f21e54”, activityType: ‘OtherNavigation’, pauseLocationUpdates: false, saveBatteryOnBackground: true, stopOnStillActivity: false, url: “MY_URL” httpHeaders: { ‘MY_HEADER’: ‘VALUE’ }, maxLocations: 1, postTemplate: { latitude: ‘@latitude’, longitude: ‘@longitude’ }

Context

when i set “notificationsEnabled” to false (notificationsEnabled: false) the notification is still visible

Expected Behavior

hidden local notifications

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:25 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
elgianocommented, Aug 20, 2019

@mauron85 Thanks! I see 😦 So we have to live with the notification because we need a foreground service, otherwise the background service will be killed. It makes sense, thanks for your work, it’s great to see that this plugin is actively maintained 😃

1reaction
snoop31commented, Apr 15, 2019

@mauron85 Thanks for quick response. I know that, but for me who uses also cordova-background-mode by katzer, no need to be displayed second notification. So this option notificationsEnabled: false could be right fit to my goal. In current version of your plugin this option is not working. Or then I don’t understand why this option needed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting the 'notificationsEnabled' property to false does not ...
The "notificationsEnabled" property used in the Header component has no effect, thus there is no control to disable Notifications from being part of...
Read more >
Notifications enabled = false on multiple sync installations.
Sometimes notifications seem to go from enabled to disabled on browser restart. It's unclear what causes this to occur. If this occurs, and...
Read more >
'notificationsEnabled: false' but I still get the notification #517
Running in Simulator: No; React Native version: 0.61.0; Plugin configuration options: BackgroundGeolocation.configure({
Read more >
isRegisteredForRemoteNotificati...
I made an extension for Swift 3 extension UIApplication { func remoteNotificationsEnabled() -> Bool { var notificationsEnabled = false if let ...
Read more >
Time Sensitive notifications not working - Apple Developer
I'm having the problem that it doesn't seem to work for me, specifically for local notifications. Does anyone else have that too? The...
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