Xcode iOS Bluetooth connect with Bluetooth speaker - ios

I have been searching for the past few days for a solution but havent been able to find any.
I am developing app to pair and connect to bluetooth device using a mac address.
I found one private framework API, but even that one i cant make it work, since for some reason i can not include the headers from the private API.
Anyone knows any information? How to achieve this on iOS, or is it 100% impossible to do this at the moment, until Apple decides to open up the bluetooth libraries to the developers?
EDIT:
I was looking into the BeeTee app, and using the private API BluetoothManager.framework, but for some reason it doesnt work on IOS 10 & Xcode 8.1
Has anyone managed to make it work?
I know it is private API and most probably wont pass on App Store, but that doesnt matter at this moment, since i am looking just to test the concept, wont need to publish app at this moment.
Thanks

Related

Can an app in development affect other apps on the phone?

I am having this weird issue while developing an app on iOS 10. Since I started testing it on my iPhone, other apps I have such as Facebook, Slack, LINE or Google Photos get randomly signed out quite often, like multiple times a day.
Could this be related to my app at all? It uses UserDefaults and Keychain to handle user log in/out within my app. I have a feeling that those two might have something to do with this but I'm not so sure.
I read that this was an issue when iOS 7 first came out but I found nothing regarding iOS 10. So I think it's just me.
Thank you for your help.
Unless there's some obscure bug in iOS 10, there is nothing you can do in your iOS app that can affect any other app. That's the whole point of sandboxing. One app can't mess with another.
This assumes your iOS device is not jailbroken and you are only using public APIs in your app. If you are using private APIs or developing on a jailbroken device, then anything is possible.

Retrieve the WPA2 Enterprise username in iOS

I have an interesting requirement that I'm not sure is even possible. Currently, I'm developing an iPad app for a fleet of tablets. The tablets connected to a WPA2 Enterprise WIFI network. Is it possible using Objective-C or Swift or C magic or whatever is necessary to get the identity/username that is connected to the wireless network?
I've poked around CaptiveNetwork, but it doesn't seem to be what I want. I'm not sure if there is something to CWNetwork, but that seems to be Mac only. You can do this on Android (I know, because I'm currently doing it with the key android.net.wifi.WifiConfiguration$EnterpriseField).
Can anybody help?
I did some reading and was thinking this would be possible through SCPreferences in the SystemConfiguration framework, but unless your device is jailbroken, the APIs you need are not available on iOS.
The only way that comes to mind is with an MDM such as AirWatch or Good.

WiFi Scan library for iOS (without jailbreak)

I'm new to iOS programming and currently doing a project for college.
As part of the project I need to be able to use my iPhone to list all available WiFi basestations in the area with respective RSSI values. This is something similar to what can be done by Apple's AirPort Utility for iPhone.
I searched everywhere and there seems to be no straightforward way to do this with normal public libraries. I do not need to publish the app in the App Store, just need to test it with my iPhone. I do not intend to jailbreak it though. Is there a way of me accessing functions to perform a WiFi scan?
This seems to be a solution: http://code.google.com/p/iphone-wireless. Does anyone know how to get started with it and if it works in non-jailbroken devices?
This appears to be an alternative: https://github.com/ipinak/iOS-WiFi. Again, how would I use it with a non-jailbroken device?
Thanks in advance!
You can use the iOS-WiFi project on github, since you're not planning on submitting your app to the app store. You can use private APIs all you want in development, just not when you want to go to production.

How to find wifi/cellular signal strength in ios [duplicate]

As far as I know it's not possible to scan for hotspots in range and read their bssid and signal strengths. This was possible on iOS 4 by using private APIs and not longer possible on iOS 5 without jailbreak. Even if it were possible, the app would be rejected on the App Store. Is that right?
One company that has an indoor positioning system is claiming they can develop this system in iOS. I know for a fact they are scanning for hotspots and signal strengths and then triangulating the signal on their current Android app.
Are there any alternatives I am missing? Their claiming sounds impossible to me but I would love to hear from the people here. I would like to be ready when they demo (although I am expecting a jailbreak or some kind of mock up)
As far as i know this can still be done (using private APIs, of course) by MobileApple80211 framework.
Stumbler code is a good source of information on how to use this framework.
For iOS 5 you'll need a jailbroken iPhone. Guvener Gokce has a very educational blog post on this: iPhone Wireless Scanner iOS5
Just to update the answer: The MobileApple80211 framework has been replaced by MobileWifi.framework. You will need a jailbroken device (supposedly it can't be done using just private API's, hence on a development/enterprise non-jailbroken device).

Scanning and switching Wifi networks on iOS 4.0 and above

I am trying to find whether the private APIs listed at: http://code.google.com/p/iphone-wireless/wiki/Apple80211Functions still work with iOS 4.0 and above. I am trying to turn the wifi ON, scan the networks available and latch on to one of the networks. I am not going to put the application in appStore and it is just an experiment. I found many applications pulled down from the appStore but they seem to have been developed on iOS versions less than 3.0. I would also like to get an example if possible.
Please Help.
I needed the same thing as you, and after some research I must say that starting from iOS 5 it is possible to scan the network list using private API on a jailbroken device only. This blog post states the following:
Last year Apple has blocked wifi scanners from App Store, however till iOS5 it was still available for private usage via WiFiManager bundle.
In iOS5, WifiManager bundle no more exists however 80211 functions are still available via IPConfiguration bundle.
The API you linked provides an open-source tool Stumbler which seems like something you were seeking. The tool is claimed to work under iOS 5.
Tried stumbler for iOS5 via linking to framework
/System/Library/SystemConfiguration/IPConfiguration.bundle/IPConfiguration
I could link to Apple80211Open, Apple80211BindToInterface, Apple80211Scan. However, I only receive empty WiFi scan results on jailbroken iPhone4S / iOS 5.1.1
The folks from WifiFofum did a good job and have a app on cydia which runs on JB iOS 5.1.1 and does an excellent job for scanning WiFi networks (BSSID, link level, SSID, channels, ...).

Resources