BLE - Show paired devices


#1

Hello. I’m using the BLE ionic / cordova plugin (https://ionicframework.com/docs/native/ble/). When I run a scan I can see devices around me, but the issue is I want to see devices I have previously paired with.

From looking at the documentation this does not seem possible (I can’t find any mention of bonded or paired devices). Is it possible using that plugin? If the answer is no, does anyone know of a plugin I can use instead?

Thanks


#2

After doing some googling I came across a Cordova plugin which does facilitate the viewing of already paired devices. Would it be rather easy to include that in my Ionic 3 project?


#3

Looks interesting. I gave it a once over and my initial reaction wouldn’t be to use the phrase “really easy”. Might require a fair amount of sanity checks along the way


#4

I’ve yet to make any ionic native plugins, how much of an endeavor would this be? Maybe I should try and extend the BLE one instead to make calls to the OS to get paired devices?


#5

seems like a normal cordova plugin to me, just has no wraper for angular.


#6

So I guess it doesn’t have an “out of the box” use, and rather I would have to make a wrap for it so it is usable in Ionic?


#7

yes, it should work, but you don’t have auto complete in your editor or other fancy typescript shit.


#8

and you maybe have to create an typescript definition file - so that typescript has no errors


#9

Hmm okay, that’s good news I guess. I’ll probably attempt to use that then. Thanks user5555.


#10

Dear @SpotOnCreative and others: this seems to be the most recent thread on Ionic3 and BLE. has any Ionic3 support been developed which can be shared back to the open source community?

Thanks again, regards