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:
- Created 5 years ago
- Comments:25 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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 😃
@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?