-
Notifications
You must be signed in to change notification settings - Fork 106
Turn on Bluetooth button doesn't work #78
Comments
I was doing some research into the linking to the bluetooth page and came across some projects that opened up the right links for bluetooth: This is the line that needs to be changed: https://github.com/cds-snc/covid-shield-mobile/blob/cb3f1a75492e368eb390d2c4b61574c9757d19a5/src/screens/home/views/BluetoothDisabledView.tsx#L11 Heres an example for IOS: https://github.com/rjblopes/react-native-device-settings/pull/8/files Heres an example for Android: https://github.com/LuoZihYuan/Synesthesia-Experiment/blob/6149fff0f2e2d7c54bd6dad89bbc725f0e9bf6fa/Runtime/SERoboArm.js#L36 I am testing this out now |
Nice, thanks so much for looking into this for us. |
Was looking at the use of And not sure if it's still the case but it might get rejected. https://developer.apple.com/forums/thread/100471
|
CovidShield/mobile#125 (comment) Found this note
https://github.com/c19354837/react-native-system-setting/blob/master/iOS.md#ios |
It appears on iOS it will not be possible to open up the bluetooth settings, we will just have to have a link saying enable bluetooth. |
Via @Stephen-PM
|
The main issue apart from this which was referenced in the link earlier is that there is actually no check for if bluetooth is enabled anywhere in the codebase. The closest thing I could find was this module which appears to be compatible with iOS and allows you to perform the switch for android too. |
My apologies, I am fairly new to objective c, I thought that this was a case switch for an not yet completed function but I now see this is being returned by the native exposure notification system. I couldn't find an equivalent of that case in the android portion. It appears to me that this case switch can't distinguish the case where it's inactive and that the bluetooth is off. |
No worries - we're all getting up to speed on the codebase :) And yes sounds like that's the case. Thanks again for your help. |
Added a PR with a potential solution to the bluetooth status check and the ability to change the bluetooth settings in app for android ^ Also attaching this issue from CovidShield here for reference: CovidShield/mobile#121 |
Ref #78 |
If bluetooth is turned off globally, the button should take you to the correct screen to turn it on.
The text was updated successfully, but these errors were encountered: