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

Unable to implement BluetoothSerial in the constructor #439

Open
kobrecht12 opened this issue Mar 16, 2021 · 1 comment
Open

Unable to implement BluetoothSerial in the constructor #439

kobrecht12 opened this issue Mar 16, 2021 · 1 comment

Comments

@kobrecht12
Copy link

kobrecht12 commented Mar 16, 2021

I am attempting to add "private bluetoothSerial: BluetoothSerial" in my constructor but it is saying that BluetoothSerial is a value and it instead suggests BluetoothSerialOriginal. If I add this to the import statement and also change the constructor to be "private bluetoothSerial: BluetoothSerialOriginal" it works and I can use all of the functions, but when I try to run "ionic cordova run android --device", I get an error saying:
"export 'BluetoothSerialOriginal' was not found in '@ionic-native/bluetooth-serial'
Does BluetoothSerial still work? If so, how do I properly implement it? If not, does BluetoothLE or BLE still work for Ionic?

For reference, here is my Ionic info:
Ionic:
Ionic CLI : 6.12.4 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.5.4
@angular-devkit/build-angular : 0.1000.8
@angular-devkit/schematics : 11.0.7
@angular/cli : 11.0.7
@ionic/angular-toolkit : 2.3.3

Cordova:
Cordova CLI : 10.0.0
Cordova Platforms : android 9.0.0, ios 6.2.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 14 other plugins)

my bluetooth-serial plugin is version 6.3.0

@avisiboni
Copy link

Same here, Have any progress?

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

2 participants