Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If bluetooth is turned off, sdk crashes #15

Open
FRizzonelli opened this issue Aug 6, 2019 · 3 comments
Open

If bluetooth is turned off, sdk crashes #15

FRizzonelli opened this issue Aug 6, 2019 · 3 comments
Assignees

Comments

@FRizzonelli
Copy link
Contributor

If you've Bluetooth turned off on your device, sdk crashes with following error it.bz.beacon.beaconsuedtirolsdk.exception.NoBluetoothException: Bluetooth is deactivated or not available on this device.

Probably we'd handle it with a modal to turn it on or something more useful to final user

@Piiit
Copy link
Contributor

Piiit commented Aug 6, 2019

@FRizzonelli @raiffeisennet I am not sure if this is intended behavior, because consumers of the SDK should handle deactivated Bluetooth devices. Or is it a real bug, which crashes the SDK nevertheless? We should describe the init process of the SDK and point to possible error handling necessities.

@FRizzonelli
Copy link
Contributor Author

FRizzonelli commented Aug 6, 2019

I think we can fix it "quickly" by updating READ.ME example, because if you follow and run it with bluetooth turned off, app crashes.
Easy fix could be to update the example by mentioning that you need to check yourself that bluetooth is turned on/off and you need to wrap sdk method NearbyBeaconManager.getInstance().startScanning()
inside a try/catch block at least.
I think that would be nice to have some handling inside the sdk, maybe something like a method in the interface dispatched when bluetooth is off?

@FRizzonelli
Copy link
Contributor Author

@Piiit Basically just add to READ.ME what you're doing in the example project. Also .startScanning() method isn't mentioned, maybe we can point it out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants