react-native-background-geolocation icon indicating copy to clipboard operation
react-native-background-geolocation copied to clipboard

'notificationsEnabled: false' but I still get the notification

Open ZioPepito opened this issue 5 years ago • 7 comments

Your Environment

  • Plugin version: latest (installed on 15th October 2020)
  • Platform: Android
  • OS version: 10
  • Device manufacturer and model: Xiaomi Mi A2
  • Running in Simulator: No
  • React Native version: 0.61.0
  • Plugin configuration options: BackgroundGeolocation.configure({ desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY, stationaryRadius: 10, distanceFilter: 5, notificationsEnabled: false, startForeground: false, notificationTitle: '', notificationText: '', debug: false, startOnBoot: false, stopOnTerminate: true, locationProvider: BackgroundGeolocation.DISTANCE_FILTER_PROVIDER, interval: 10000, fastestInterval: 5000, activitiesInterval: 10000, stopOnStillActivity: false, url: 'http://192.168.81.15:3000/location', httpHeaders: {}, // customize post properties postTemplate: null });
  • Link to your project:

Context

I am using it in a simple application, I don't want the notification to be there even if the app is in background so i set notificationsEnabled to false in the configure

Expected Behavior

notification shouldn't be there

Actual Behavior

notification is there.

ZioPepito avatar Oct 16 '20 13:10 ZioPepito

I'm also encountering this problem

gabimoncha avatar Nov 13 '20 11:11 gabimoncha

@ZioPepito I found the solution. If you set debug: false, the notifications will stop

gabimoncha avatar Nov 13 '20 12:11 gabimoncha

debug is already set to false, so doesn't work for me :(

ZioPepito avatar Nov 14 '20 18:11 ZioPepito

Any solution to this?

Rc85 avatar Mar 25 '21 15:03 Rc85

Any solution to this?

I tried for a month more or less and I didn't found a solution. Now I am not working with react anymore.

ZioPepito avatar Mar 26 '21 21:03 ZioPepito

debug is already set to false, so doesn't work for me :(

set debug=false, delete and rebuild the app worked for me.

programandoconro avatar Jul 31 '21 12:07 programandoconro

debug is already set to false, so doesn't work for me :(

set debug=false, delete and rebuild the app worked for me.

Thanks a lot :) As I said I'm not working on that project anymore but I hope this works for others too.

ZioPepito avatar Aug 03 '21 13:08 ZioPepito