I am using a Bluetooth LE plugin to connect android and iOS devices via bluetooth. Similar platform OS’s(iOS to iOS and Android to Android) can establish connection successfully. However, when trying to connect iOS to Android or Android to iOS, the state of the device remains disconnected and I want to establish the connection between iOS and Android.
Please refer to my sample source code https://github.com/sblsatwikha/TestBluetooth
I have also added the log file in the same repository https://github.com/sblsatwikha/TestBluetooth/blob/main/LogFile
and this is the plugin I integrated following the ReadMe file in
https://github.com/capacitor-community/bluetooth-le
And I also tried with all the below plugins.
https://ionicframework.com/docs/native/bluetooth-le
https://github.com/don/cordova-plugin-ble-central
https://ionicframework.com/docs/native/ble
Related
I have worked on Xamarin android and in android I am able to print with Bluetooth printer but I am not able to find any solution that work on Xamarin IOS.
Is any dependency services can be used to find near by devices in Xamarin IOS and Print it on any Bluetooth device.
I know there are similar topics like this but as the title indicates, would you be able to develop an app for iOS using expo with a real iphone device connected to the same LAN?
Yes, For expo you don't require xcode or android studio. you need to install expo on your iPhone and connect to the same network and scan the QR code. sometimes it does not work on LAN try switching to tunnel for better connectivity.
For iOS you can use
Send Link With email option
This will email you a link, click it from your Mail app, and it’s running on your device!
I am trying to interact with a BLE device through webBle. I was able to do this in Chrome in Android. I was trying to do that same thing in iOS Chrome as well using.
navigator.bluetooth
But it was not working and after some research, I found that it's supported only in macOS and not in iOS.
I was wondering if there is any way for me to interact with the BLE device on iOS using a browser?
Web Bluetooth is not supported by Mobile Safari or WkWebView and has not been added by major 3rd-party browsers on iOS. There is however a Web Bluetooth-specific browser called WebBLE which includes an implementation of Web Bluetooth. It is open source software with code available on GitHub.
I am trying to connect 7Xi scanner to SingleEntry project.
For a very first time I just started scanner and connect to Bluetooth so I guess it was HID connection. I refer Readme file from SingleEntry project.
So I tried to setup scanner in iOS mode by
I reset the scanner pairing by pressing Scanner’s large button + on/off button.
I have generated
#FNC IOS ACCEPTOR 000000000000#
barcode and scanned it.
Now, how would I get to know that scanner is setup for iOS mode and not for HID ? As I am seeing same name in Bluetooth manager of my pc and iPad.
If I pair and Run the SingleEntry project nothing is happening. No delegates being called.
Am I missing something ?
I got the issue. In Readme file its mentioned :
For the 7Xi/Qi: #FNC IOS ACCEPTOR 000000000000#
For all others (1D scanners and 8Qi): #FNB00F40002#
For me #FNB00F40002# worked to change scanner to iOS mode from HID mode.
Now its working. Also it will not work with Simulator.
I have an idea for an iOS app I'd like to build. Coming from web, I'm currently learning React-Native to build iOS apps. I was wondering if it's possible to build an app that has pairing capabilities with a Mac.
Core Bluetooth only covers Bluetooth LE. If you want Bluetooth classic you have to sign up for MFi.