Pairing a bluetooth device with iOS using Cordova - ios

I'm connecting to a BLE device in a Cordova application using the ble-central plugin. I can connect to the device from the application without a problem, when I connect to the device from iOS I get prompted for the PIN and on entering the PIN I get connected, all as expected.
The problem is that the device does not get remembered on iOS, and that every time the application is restarted, or if the connection fails, I get prompted for the PIN again.
Is there a way to force iOS to remember the device? The strange thing is that even though I can connect to the device from the application, or something like the LightBlue application I cannot seem to detect the device from the settings.
Not sure if this is some iOS limitation, if the device should somehow be iOS enabled like older devices did? It seems to me I wouldn't be able to connect at all if that was the case?
Any help or idea is appreciated.

Related

Issue reconnecting to periphal device with iPhone (QT)

I have a qt app running on Android and iOS. The Bluetooth part of the code is in c++ and currently works for Android.
Currently on the iOS side I can discover the device and pair to it and connect. However when I go to connect to the device again after closing and reopening app (or restarting the phone) I cannot reconnect to the device.
I save the Devicee UUID that iOS creates for the device (since there is no MAC Address) and I get the error from my QLowEnergyController that says "Remote Device Not Found".
Things I have tried after pairing:
1. Restart app and try connecting.
2. Go into settings and manually connect to the device. Still doesn't find the device.
Are there any specific steps to reconnect to iOS?
I am expecting that the app will connect my iPhone to the device just like in Android.

External Accessory bluetooth issue in IOS11

I have App which uses external accessory platform to connect to iPod App.
Before iOS11 bluetooth was working very much fine with automatically reconnecting when ever my app restart. I don't have to go to setting all the time.
from iOS11, in setting it shows device is connected whenever i restart my App but it does not actually connect to it i had to disconnect or to forget device and fresh connection.
I notice that this is true for Bluetooth devices on iOS11.
is it a BUG in iOS11? or some keys i need to add to the .plist?
Thanks
It seems to be a bug on iOS side.
I am following this Apple developer forum thread for a while https://forums.developer.apple.com/thread/79395.
Someone found that the iOS 11.2 beta solved the problem. I am currently trying on my side with my external accessory.

BLE - Bluetooth connection issue iOS Objective C

In my app, I am trying to connect to BLE device from inside the app. At times, I get a warning saying "Device cannot be connected, please try to reboot it". When I turn off and turn on Bluetooth, it works fine. Is this an issue with the BLE Device I am using? Or is this an issue with my code.
Regards,
Vamshi

Is there a way to prompt a user to turn on/off WiFi in iOS from an Alert?

I have this problem where when I go out my iPhone 6s on iOS 9.3.4 tries to connect to every hotspot I pass. Then when it is trying to connect I can't get emails/texts/alerts etc. My solution has been to turn off WiFi. But then I get home again and forget to turn it back on and I wonder why my internet is so slow until I remember to turn WiFi back on. I got the idea for an app to build a geofence around my house and turn off WiFi when I leave that area. I know I can't do this automatically because of the iOS sandboxing restriction, but can I pop an alert when I cross the geofence boarder that asks if I want to turn WiFi on/off?
I haven't found anything current that allows me to do this. I have searched extensively and only found "Stumbler" but it appears to be from 2007. I only know C# and do all my app development in Xamarin so C# code would be best or if you know of any libraries/components/plugins.
Also, I just want this app for myself so no need to submit to app store.
Thanks,

Xcode iOS Bluetooth pairing issues

Once a Bluetooth device has been stopped and the connection is lost. Is it possible for the iPhone to automatically pair to that device once it is turned on again? Instead of manually going into the iPhone settings to connect that device.
It is not related to iOS device. Auto parse is the job of the device you are trying to connect (I am using EA framework, not core bluetooth). I have the same problem on current project. What we did is update firmware that can remember last connection, so next time it will automatically connect to iPhone.

Resources