mit-cml / appinventor-extensions

Source code of extensions published for MIT App Inventor
Apache License 2.0
86 stars 94 forks source link

Better support for devices where BLE is not available #25

Open ewpatton opened 5 years ago

ewpatton commented 5 years ago

If you compile an app with BLE and it is run on a version of Android prior to 5.0, we throw an exception in the constructor and this causes the app to crash. Instead, we should dispatch an error. We should also add an "IsAvailable" property to check whether the device has BLE support so that developers can provide feedback to the app user.