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

Need help with message 'CallbackContext for uuid fetching doesn't exist.' #16

Open
luis-ocampo-tierconnect-com opened this issue May 21, 2014 · 3 comments

Comments

@luis-ocampo-tierconnect-com

In the bluetooth demo after clicking on Connect I get the following error and doesn't connect to the target device, what am I doing wrong?

The device I'm testing on is a Galaxy Note3 with Android KitKat 4.4.2

05-21 15:36:01.433  14092-14130/com.whitefang W/PluginManager﹕ THREAD WARNING: exec() call to Bluetooth.connect blocked the main thread for 22ms. Plugin should use CordovaInterface.getThreadPool().
05-21 15:36:01.433  14092-14156/com.whitefang D/BluetoothUtils﹕ isSocketAllowedBySecurityPolicy start : device null
05-21 15:36:01.433  14092-14156/com.whitefang W/BluetoothAdapter﹕ getBluetoothService() called with no BluetoothManagerCallback
05-21 15:36:01.438  14092-14156/com.whitefang D/BluetoothSocket﹕ connect(), SocketState: INIT, mPfd: {ParcelFileDescriptor: FileDescriptor[139]}
05-21 15:36:05.843  14092-14130/com.whitefang E/BluetoothPlugin﹕ CallbackContext for uuid fetching doesn't exist.
05-21 15:36:24.863  14092-14170/com.whitefang D/BluetoothUtils﹕ isSocketAllowedBySecurityPolicy start : device null
05-21 15:36:24.863  14092-14170/com.whitefang W/BluetoothAdapter﹕ getBluetoothService() called with no BluetoothManagerCallback
05-21 15:36:24.868  14092-14170/com.whitefang D/BluetoothSocket﹕ connect(), SocketState: INIT, mPfd: {ParcelFileDescriptor: FileDescriptor[140]}
05-21 15:36:30.043  14092-14130/com.whitefang E/BluetoothPlugin﹕ CallbackContext for uuid fetching doesn't exist.
@tanelih
Copy link
Owner

tanelih commented May 22, 2014

Hi,

I really have no idea what's going on there. I've been testing the code on a Nexus 4 (Android 4.4.2) myself and haven't run into problems like these. I think the demo has also been tested on a Galaxy Mini, so there's that too...

05-21 15:36:05.843  14092-14130/com.whitefang E/BluetoothPlugin﹕ CallbackContext for uuid fetching doesn't exist.

You can find the CallbackContext for UUID's in the BluetoothPlugin.java file. I think this error originates from there. Maybe you can throw in some logging to see what is causing this?

I hope you can find a solution to this.

@netgfx
Copy link

netgfx commented Jul 9, 2014

Same here throws
"CallbackContext for pairing doesn't exist."
and then
CallbackContext for uuid fetching doesn't exist.

anyone got a solution on this?

@kozak
Copy link
Contributor

kozak commented Jul 22, 2014

This error is in my log as well. But it doesn't affect the connection/working of the app.
Just a speculation but maybe startDiscovery will both trigger BluetoothWrapper.MSG_DEVICE_FOUND and BluetoothWrapper.MSG_UUIDS_FOUND. And startDiscovery usually happens before the uuid callback ctx is assigned (before the client calls bluetooth.getUuids().

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

4 participants