This project aims to leverage Flutter's method channel to automatically connect your device to a Bluetooth Device. For now, the code is only used on Android as Apple does not give access to classic bluetooth programmatically on iOS.
The program will ensure in the following order that:
- The device has bluetooth.
- The bluetooth is enabled (if not, prompt a modal to turn it on).
- The app has access to the user's location (if not, prompt a modal to allow). This is mandatory as scanning nearby devices requires location permission.
- The device starts a scan for one bluetooth device that matches a regex.
- If found, the app automatically connects to it.
- Pairing for the first time, requires the user's permission by prompting a modal (again).
- Done.