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

App crash after start, if I use this plugin #455

Open
SteveeH opened this issue Nov 19, 2022 · 5 comments
Open

App crash after start, if I use this plugin #455

SteveeH opened this issue Nov 19, 2022 · 5 comments

Comments

@SteveeH
Copy link

SteveeH commented Nov 19, 2022

Hello,

i want to use this plugin in my application, I just create new Cordova but after I install it "cordova plugin add cordova-plugin-bluetooth-serial" application always crash after launch, even if I didn't use any code from plugin (its just helloWorld app). I want to add some logs, but I can't open debug console because app crash immediately.

Do you have any idea, is it because of new version of iOS?

Cordova: 11.0.0
iOS : 16.1

Thanks you all for response

@Glavotaner
Copy link

A good start is to check what the XCode console says before the app crashes; there you should be able to find the error that caused it. There is definitely initialization logic that runs on the plugin regardless if you actually invoked any method.

@pitamash
Copy link

calling this bluetoothSerial.isConnected caused it to crash for me.

@Glavotaner
Copy link

calling this bluetoothSerial.isConnected caused it to crash for me.

@pitamash What platform are you on? Can you try to copy-paste the error you get from logcat or Xcode console?

@pitamash
Copy link

pitamash commented Jun 22, 2023 via email

@Glavotaner
Copy link

@pitamash You won't be able to use the new SCAN/CONNECT/DISCOVER permissions; you can put them in your manifest, but they are runtime permissions so the plugin still has to check/request those permissions at runtime. That won't happen because the project isn't maintained and while people have made PRs for that, the author isn't available to merge them.

I'd advise you to make your own fork, or use someone else's; eg. this one is mine https://github.com/Glavotaner/bluetooth-serial

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