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

Wrong pairing Password callback error is not called #26

Open
rammere opened this issue Aug 2, 2014 · 1 comment
Open

Wrong pairing Password callback error is not called #26

rammere opened this issue Aug 2, 2014 · 1 comment

Comments

@rammere
Copy link

rammere commented Aug 2, 2014

Hi,
When I ever enter a wrong pairing number ( when the bluetooth module is not paired ) the onError callback is NOT called ( instead a native message appear to tell you error in the pairing number ) and when I try to pair again it will not pair but this time the onError callback is called with an error code 3 (pairing is already in progress ) .
If this is an issue how to cancel the pairing process ( I already tried to call unpair function with no luck it gives same error -code 3 - )
Tested Device : Note 8 with android version 4.4
Bluetooth Module Device : HC-06

Regards,

@tanelih
Copy link
Owner

tanelih commented Aug 5, 2014

Hi,
This seems to be an issue in the plugin itself.

More specifically here, where for reasons unknown reflection is used to retrieve the createBond method, whereas it is actually available on the BluetoothDevice itself.

If you can, try using the createBond method from the BluetoothDevice directly instead of the reflection.

EDIT: Actually the new createBond method from BluetoothDevice was just added in API level 19 (Android 4.4).

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