Ionic Android pairing with Bluetooth without PIN - ionic-framework

I am working with Arduino and a bluetooth module (specifically HC-05 and HC-06). I have a Ionic app that uses the Bluetooth Serial plugin and I can connect to the bluetooth module successfully, however I want to be able to remove the pop up that appears asking the user to enter the PIN to pair my Android to the Bluetooth module. I know this can be done using native SDK, example here and here. But not sure how I would go about it using Ionic.

Related

Is there an alternative for flutter-bluetooth-serial package that can be used on both IOS and Android devices?

I have been working on a flutter app for few months now. The main feature that my app relying on is Bluetooth serial communication. Basically my app will connect and communicate (receive and send data) to HC-06 Bluetooth module that is connected with a microcontroller.
Everything was going great till the moment when I found out that flutter bluetooth serial package doesn’t actually work with Ios devices (have been doing all tests on android device).
So I’m wondering if there is a way to make it work on ios devices or if there is any alternative way that I can use to creat the serial communication between ios and Hc-06 device.
iOS does not support SPP (Serial Port Profile), which is the serial protocol you are almost certainly using with Android. You will need to redesign your system to use another protocol.
The HC-06 only supports Bluetooth 2.0+EDR, and I don't believe there is any protocol it can handle that is also supported by iOS (in a way accessible to developers). You would likely need to use a module that supports BLE GATT, which requires Bluetooth 4.
(iOS does support GATT over BR/EDR, but I don't believe that's available on the HC-06.)
taha! I recommend you to try this package flutter_blue.
I use it to connect my BLE device and communicate well.

OpenTok Audio to primary audio source in Android Ionic

I am creating an application using OpenTok on Ionic for Android and IOS devices.
When I am running the application on Android/IOS devices the device speaker is used as a default audio. I am struggling to use the primary audio source which we normally use when we do a phone call or whatsapp call.
TokBox Developer Evangelist here.
You would need to write a custom audio driver to be able to route the audio to the desired route. Here are some links to the sample implementations:
iOS - Objective-C
Android - Java
If you're using Ionic, you would need to write a bridge via Cordova to be able to expose this functionality because it's not available through the Cordova-Plugin-OpenTok.

Ionic Framework - detect if the device is rooted/jailbroken

I want to detect if the device is rooted/jailbroken using Ionic Framework.
I am using iRoot plugin for the same.
It works fine but if the user has installed JailProtect app he can block my app from detecting the rooted device.
Is there any better plugin than iRoot which will be difficult to bypass

How to get available WiFi list in IOS in ionic?

I am creating a hybrid application where I'm scanning available WI-fi list and trying to connect it via app. To achieve it in android native I'm using hotspot plugin which is working perfectly fine but it is not available for IOS. Can any one suggest me any cordova plugin which I can use to get WI-fi List and to connect via SSID and password in Ios? I will be grateful if any one will provide some sample codes.
iOS has limited functionality as Apple's WifiManager equivalent is only available as a private API. Any app that used these features would not be allowed on the app store.
Connect/Disconnect only works for iOS11+

Ionic BLE Connection Issues

I'm using the Ionic Native BLE plugin to scan and connect to bluetooth devices. I'm able to get the plugin to list available devices, but I'm unable to get it to show already paired devices. This is the plugin I'm using:
https://ionicframework.com/docs/native/ble/
After searching through the documentation and finding examples, I've come to the conclusion that using this plugin to list already paired devices is just not possible. Is this the correct conclusion?
If so, do you know of any other plugins I could use to facilitate the looking up of paired bluetooth devices? I'm using Ionic 3.
We have been working on a simple BLE button and had the same issues. The only way we found out how to do this was to disconnect the button on app close (which the latest BLE version seems to do). We save the device ID (localStorage) when a user connects a device and then when the app starts up again the user has to wake up the device and the app starts scanning on startup. If the saved device id is the the id as your locally saved id it connects automatically.
If you, or anyone, wants to try other plugin, you can also try this: https://ionicframework.com/docs/v3/native/bluetoothle/
I first started using the same plugin that you use. After I encountered some difficult issues due to the strange operations of some bluetooth devices, I tried the second plugin and I found it to be better. That was three years ago and I can't say how the other plugin has improved in the present. One thing I like with the bluetoothle plugin is that it has many methods available and that gives more control to the bluetooth operations. You can look at these methods in its repo:
https://github.com/randdusing/cordova-plugin-bluetoothle