Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable all notifications. #32

Closed
VlCTORlOUS opened this issue Jan 10, 2017 · 3 comments
Closed

Disable all notifications. #32

VlCTORlOUS opened this issue Jan 10, 2017 · 3 comments

Comments

@VlCTORlOUS
Copy link

VlCTORlOUS commented Jan 10, 2017

Environment

  • Plugin version: "react-native-mauron85-background-geolocation": "^0.2.0-alpha.5"
  • Platform: Android
  • OS version: 7.0
  • Device manufacturer and model: Motorola Nexus 6
  • React Native version: "react-native": "^0.29.2"

Context

This bug does not seem to be new (#3)

I also tried this approach (#29), which didn't help either

I also changed the debug value inside of BackgroundGeolocationModule.java to false to test this - didn't affect it in any way ... help please..

./gradlew clean and rebuild does not help either.

The Notification stays even after I manually close the App - the only thing that "helps" is to uninstall the App.

UPDATE:
Just looked through the README and found this debug description:

When enabled, the plugin will emit sounds for life-cycle events of background-geolocation! See debugging sounds table.

So ... Is this really just for the debug sounds? Or is the part about "showing the notification" just missing in there?

@mauron85
Copy link
Owner

So did you tried options startForeground: false? Debug: false is basically for disabling debug sound and toast messages.

@VlCTORlOUS
Copy link
Author

Yes, but as you said in #3 this approach isn't recommended because it is possible that the service would be killed if the resources are beeing needed elsewhere.

Nevertheless, I am now using startForeground: false because it seems that Androids Notification is completely independent and there is no possibility to "siply" hide or disable the shown Notification without causing the described effects

@mauron85
Copy link
Owner

Notice: this issue has been closed because it has been inactive for 314 days. You may reopen this issue if it has been closed in error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants