0

I am new to iOS programming and working on a project which needs to detect if an iPod touch(or iPhone 4) is connected to a paired Mac via Bluetooth. I do not need to connect it. I just need to check if it is connected and display a log when it gets disconnected. I do not have Bluetooth LE. Also the app would not be running on the Mac so i cannot create a peer-to-peer connection. Also, i cannot use Bluetooth Manager(or any private framework) since the app would need to be accepted by Appstore at some point of time. Any help would be appreciated

Nicholas Smith
  • 11,642
  • 6
  • 37
  • 55
m b
  • 101
  • 8
  • Reading the core blue tooth class reference helps. Here is the link: http://developer.apple.com/library/ios/ipad/#documentation/CoreBluetooth/Reference/CoreBluetooth_Framework/_index.html – Adrian P Mar 28 '13 at 02:07

1 Answers1

0

It's my understanding that so long as the private framework doesn't break any of Apple's guidelines you would be able to use it in your application. It is only if it DOES break guidelines do you get rejected. Here is an example of another post on SO suggesting the use of the BluetoothManager Framework.

How to get the status of bluetooth (ON/OFF) in iphone programmatically

Edit: This slightly covers private APIs vs private frameworks: Programmatically turn on bluetooth in the iphone sdk?
Another more recent example of someone using BluetoothManager here: Minimal iOS BluetoothManager Example

Community
  • 1
  • 1
propstm
  • 3,461
  • 5
  • 28
  • 41
  • Thank you @propstm. If i use Bluetooth Manager as given in http://www.pocketmagic.net/2012/07/bluetooth-and-ios-use-bluetooth-in-your-iphone-apps/#.UUn2phf5Gz4 Then would it be accepted in App store? – m b Mar 20 '13 at 17:53
  • I haven't personally used it, but I cannot see a framework that has evolved as greatly in the past few years at Bluetooth Manager has that it would not be accepted into the app store. A word on private frameworks, I have included Google's Analytics tracking for iOS and have never had any issues (https://developers.google.com/analytics/devguides/collection/ios/) – propstm Mar 20 '13 at 17:57
  • But when i try searching for 'Bluetooth Manager accepted by Appstore' I only get results stating that it will be rejected. So I was a bit apprehensive about using this. Has anyone used it and got the app approved? – m b Mar 21 '13 at 01:04
  • It looks like as of iOS6 some Bluetooth is accessible. If I had to guess this may be a bit more difficult than BluetoothManager but apple provided code is good check this out http://weblog.invasivecode.com/post/39707371281/core-bluetooth-for-ios-6-core-bluetooth-was – propstm Mar 21 '13 at 02:31