Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Background "connection to car" detection - React Native

$
0
0

I have a react native app. I want to pop-up a notification to user when he is in the car.I could use react-native-activity-recognition package, but the problem is, that it will notify only when the user already started the driving. I need it to happen before.

Therefore, I believe my solution is in BT detection or some other "hands-free" mode state. I found this package: react-native-car-connect. The problem is that it doesn't seem to support android at this point.

Then I thought maybe use this package: react-native-headphone-detection, from what I understood it works only in foreground, also I don't want to popup the notifications for every BT connection, but for the car.

Is it even possible what I am looking for? If it does, maybe I should look into another direction?

Thanks


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>