StephenBlackWasAlreadyTaken / xDrip

Android Application that collects dex signals, allows calibrations, and uploads
GNU General Public License v3.0
208 stars 176 forks source link

Marshmallow support for Bluetooth pairing #122

Closed supersam654 closed 8 years ago

supersam654 commented 8 years ago

This PR adds pairing support for Bluetooth devices and Android phones running Marshmallow (fixes #121).

The fix required two changes. The first is the app has to request either fine-grain or coarse-grain location (I chose coarse grain just because). The other change is location services (GPS) needs to be enabled. On devices running Marshmallow only, a notification pops up telling them to enable GPS when they click "Scan for BT".

I tested this fix on my own Nexus 5 running Marshmallow and a different LG G3 running Lollipop (5.1.1). screenshot_20151125-115037

AdrianLxM commented 8 years ago

Hello @supersam654, the development of xDrip takes place in this repo: https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental

scottc5 commented 8 years ago

You should move this down to the development repo like Adrian said, anyway your changes fix my connect issues on the my Nexus 6P with both this branch and the experimental branch so thanks!

supersam654 commented 8 years ago

Closed in favor of https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental/pull/213 on the experimental repo.