don / cordova-plugin-ble-peripheral

Apache Cordova plugin for implementing BLE (Bluetooth Low Energy) peripherals.
Other
31 stars 31 forks source link

How to use in Ionic #18

Open jmoratat opened 4 years ago

jmoratat commented 4 years ago

Hello,

I've read the documentation and add the cordova-plugin-ble-peripheral to make the phone act as a LE Peripheral but when I'm going to use the plugin in my typescript class, I can't obtain the object blePeripheral.

I read in other issue that I can use in one way buy doesn't work (It says to me that the property doesn't exist):

let blePeripheral = (window).blePeripheral

Is there any wrapper directly for Ionic to use in iOS/Android? Anyone did this integration in the past? Or any example for create an advertising in Ionic?

Thank you!

marcui13 commented 1 year ago

Hi, were you able to figure it out? I have the same problem, please help me