Bluetooth chat Android two way communication - javascript

I've tried building an app using Android open source Bluetooth chat sample project. you can find the source code here: https://github.com/googlesamples/android-BluetoothChat
The problem is that the sample itself has a bug sometimes two way communication fail and one of the two devices fail to receive messages
you can find the problem in this video: https://www.youtube.com/watch?v=zVyW7yBBwa0&t=4m16s
I've tested it using Samsung GT-N7000 running 4.1.2 and Samsung Galaxy Mega running KitKat.
Can anyone help me figure out how can I edit the source code to fix this bug as the two devices fail two way communication each time I try to connect them using the app.
I've used Android Studio to build the signed apk.

Related

Web Audio API crashing on mobile devices (tested on IOS)

I am using waveform-playlist to create a multi track player similar to ones you'll see on music editing software such as GarageBand, FL Studios, Ableton, etc. Using the library waveform-playlist I was able to set everything up with no problem. However, on mobile devices, it would crash after trying to interact with the pause or stop buttons on the app whilst the audio is playing. I'm assuming it's a memory leak issue. Any ideas on how I can start to debug this or how to fix this since the console on chrome mobile is very basic and doesn't return any errors.
Here is the deployed app that I'm testing on https://subtle-frangollo-452f91.netlify.app/
Here is the library I'm using to make this: https://github.com/naomiaro/waveform-playlist

React-Native BLE Manager works on Android but not IOS (could not find service with uuid)

I coded a JavaScript react-native project and ran it on my Android phone & iPhone.
It works on android phone but it doesn't work on iPhone.
I am Using BLE manager Library.
I can find & connect devices using ios and android.
I can subscrible and send data using anroid.
I know that there are no mistakes on code because it works on Android.
I can't start notifications and send data using the same react native project on IOS
I think it is because of BLE manager library but don't know how to solve it
It works perfectly on android. As shown below.
ANDROID IMAGE(Console below Code Top)
Then I uploaded the same project on my iPhone. I get the following UUID mismatch. Code is the same but can't communicate.
IOS IMAGE (Console Top Code Below)
Note LightBlue Info:
If Someone can tell me what to write on ID,ServiceUUID,CharUUID It would be lovely.
UPDATE***
I tried this:
As seen on the picture below, I connected to device using ID, But can't find service with UUID

Debuging website in native android browser run in AVD(android studio)

I have to debug some problems on website I recently created that occur only in native android browser on some tablets. I don't have access to physical device so I decided to to install Android Studio and created tablet AVD(android virtual device). Process run smoothly and now I can open native browser in virtual device and check my website.
I can see the same errors as those reported on tablets(that's great) but I cannot figure out how to run any kind of devtools in native browser. Even access to console output would be enough.
I'm running android studio on Ubuntu 18.x LTS, but I guess my question is not platform specific.
I would prefer any solution that can be run on virtual device(like some additional app that acts as debugger), even if it would give me only console output, over more sophisticated ones that require more complicated configuration.
But, honestly, I would really appreciate any kind of help.
you have to use the Chrome debug bridge; accessible through chrome://inspect on the desktop browser... connected devices will show up there, as long as USB debugging is enabled; that should work with an emulator, as well.

How can I troubleshoot my website on a Smart TV browser?

We bought a Samsung Smart TV to mount on the wall and display our company dashboard. I wrote the dashboard in HTML/Javascript/CSS and everything is going well. It's to a point that I felt comfortable displaying it on the big screen. However most of the data does not load. I have no idea how to access a console of any type. I've tried changing my agent string to match in Chrome dev tools, but of course that doesn't emulate capabilities. I also downloaded the "2014 Smart TV Emulator 5.1" from Samsung's site and got it running in VirtualBox but as far as I can tell you can only use it to debug and emulate native Tizen apps. I can't figure out how to launch the browser on the emulated set.
So, how can I troubleshoot my web app on a Smart TV Browser?
If you are using Tizen SDK/ Tizen Studio you can debug Tizen web application:
Run As > Tizen Web Simulator Application (Samsung TV)
Click on Web Inspector.
You can see your console here.

Unable to connect to websocket

I have a cordova/phonegap app that is supposed to connect itself to a websocket server. It works fine on ios & android 4.4 but not on my Samsung Galaxy Tab 2 running android 4.2.
I know that the webview in 4.2 doesn't have a native implementation of WebSockets but I loaded a phonegap plugin for this. The plugin loads successfully and I waited for the deviceready event before attempting a connection. When I try the example provided by the plugin, the onerror event is trigered but I have no additionnal details.
Running the app using Google Chrome on the same device works, so I exclude a network issue. The application has the INTERNET permission. I'm a little out of clues at this point, any ideas are welcome :-)
Ok, after taking a look at the adb log as #Nicholas suggested (thanks!) I had an exec() call to unknown plugin. Somewhat following this answer solved the problem.

Categories