I have an app that uses iBeacon. I plan to provide all of the feedback about the state of Location Services and Bluetooth to the user within the app.
The problem is: When I disable Bluetooth while the app is running. An alert view comes up titled "Location Accuracy" saying "Turning on Bluetooth will improve location accuracy." This degrades from the user experience that I am trying to set up. I want to guide users into turning on Bluetooth using custom UI.
I would like to disable this alert. Is that possible?
You can't. iBeacon based on Bluetooth so it just not work without turning it On.
Upd. but of course you can check that bluetooth disabled with CBCentralManager and inform user in other way before using iBeacon code
Related
We have an accessory based on the Roving Networks RN41 bluetooth module. We have the MFi chip, and the device works OK (only OK).
Whenever the user comes in range of the device, they get an iOS pop-up notification of "APP NAME would like to use DEVICE NAME".
This is really annoying for our users, as with our use-case, they might expect to see this 5-10 times a day.
Is there any way to disable this notification? I have tried removing the registerForLocalNotifications method, but this has no effect.
I'm developing one iOS application which is related with OBD2. The app provides feature like connecting with obd2 device and read out data.
With user's permission, I want to implement below feature even if app is not running at all :
Now I want to do When user enters car, connection to obd2 device is to be done automatically and check for some params if i gets failure on those data then i need to send data to cloud for analysis.
How can i know about user enter car ? I'm thinking one way like continuously checking the Wifi Availability to OBD2 device and if i get wifi available then i can say "user is nearer to car or in the car".
But again problem is that if app is not running in the background then how can trigger this kind of event.My app is not supporting any background mode like voip, audio, location, newstand etc..
Is there any other way like local notification or any other way by which i can trigger event that user has entered in car even if app is not running at all ?
Can Background mode like Receive updates from External Accessory mode or External Accessory framework support me in this feature implementation ?
Can i develop this feature in such way that Apple approves this feature ?
Any other feedback or suggestion will be appreciated !
I am using an Arduino Uno microprocessor in conjunction with a bluetooth shield. This is irrelevant. What is important is that I am sending a bluetooth signal form this device. I want to make an app for my phone to immediately turn off, be disabled, or at least have text messaging and calling disabled. Basically, I want to put this device in a car and when my phone gets near, calling and messaging is disabled. I am okay if I need to keep my app running in the background. I cannot find any examples on the web, so any suggestions are deeply appreciated.
Apple's security mode doesn't allow for this. You will need to jailbreak it. How to do that is left for the reader.
Then, I would read up on CoreTelephony private methods:
https://github.com/EthanArbuckle/IOS-7-Headers/tree/master/Frameworks/CoreTelephony.framework
I have a fitness app that is already in the app store and now I want to implement a bluetooth device that users can purchase if they wish. This is my first time dealing with bluetooth and after reading "Core Bluetooth Programming Guide", I have the following questions.
My app contains information that my bluetooth device requires simply to display the data. If I'm not mistaken, this makes the app the "Peripheral" because it has the data. The bluetooth device wants the data from the app so that makes the bluetooth device the "Central". Am I correct about this?
Finally, here is where I get confused. The bluetooth device has a button that I want when pressed to trigger the app to get the app to send new values to the bluetooth device. Is this possible? The reason I ask because in this scenario, would this now mean that the bluetooth device is the peripheral and the app is the central? If yes, will I have to break the current connection between the two in order to switch their roles (manager, and peripheral)?
Thank you in advance, really appreciate it!
Ted
As you have control over coding the app and coding the device, you can make it work either way around (Assuming the device is to be used specifically with your app and nothing else).
Both central and peripheral have methods to read and write data from/to the peripheral.
Without more information on the data and how often it's updated, it's difficult to suggest the best way to do it.
You say your device will have a button that will tell the app to send data over to it, well the app won't need to send anything it simply keeps values up to date then your button would tell your device to read the latest value.
Or (Again without knowing the purpose this may not suit) you do away with the button completely and your device subscribes to a characteristic in the app and is notified every time the value is changed by the app.
We were looking for a few roles regarding the Bluetooth LE in iOS, but we could not find them. I have a few questions for anyone who is already using it:
I have read here that there is the ability to listen in the background for the signals, is that right? if so, can i get a signal and open that app from background ?
The other way, can my app run in the background and at some point (lets say when the app gets a notification from alarm) send LE signal without even open the app ?
(Its reasonable that yes, because the iPhone DOES call delegate function, that i can write a LE into it, isn't it?)
Does LE Bluetooth control any iPhone operation(s) outside the relevant app?
Does the Apple docs has some kind of ordered roles for the LE?
Yes. But you can't bring the app to the foreground. You can do some background processing and post a local notification.
Not from an alarm, because the alarm would notify the user, not the app. Possibly from a push notification but that would be a bit weird.
Depends. iPhone can act as Central and Peripheral so it could.
? (You mean Central and Peripheral roles?).