X-Guard / react-native-flic2

Use Flic 2 within your React Native application with ease.
Other
8 stars 9 forks source link

Hide Android Service when no buttons are paired #15

Closed LucasMonteiro1 closed 3 years ago

LucasMonteiro1 commented 3 years ago

I would like to not show the notification or only if the button is connected, is it possible?

jdegger commented 3 years ago

The Android notification is bound to a long running service, required to detect the button.

We have a plan to only run the service maybe if there are more than one buttons paired with the phone. It won't be possible to only show the notification when the button is actually connected.

Are you looking for hiding the service notification when there are no buttons paired with the phone or when no button connection is active?

The first is possible, the second is not.

LucasMonteiro1 commented 3 years ago

I want to hide the service notification when there are no buttons paired with the phone

jdegger commented 3 years ago

Yes, we understand your request, we also looked into it before but have not come around to creating it yet. I changed the title of the issue to better fit the problem and we might implement it later.

Of course, PRs are also very welcome (from anybody!)

jdegger commented 3 years ago

This issue has been resolved in #19