Alerting from a ble device - ios

Do the likes of flic, tile and pebblebee implement their own ble services/characteristics ? Or are they using standard ble profiles ?
I'm building a ble device and would like to make the phone alert/ring when a button is pressed on the device and googling doesn't suggest a standard.

The simple answer, both devices have to have a immediate alert service exposed in order to have 2 way alerting.
I'm using a microchip rn4020 which wasn't scanning the central device for services, once I corrected that i could see the phone app was presenting the immediate alert service.

Related

PunchThrough LightBlue how do you make a virtual device send a notification?

I'm developing an Android app that is a BLE central. I don't yet have access to the peripheral device. This would be a typical scenario for a virtual device simulator like LightBlue. I can scan and connect client-peri and I can enable notifications by writing the CCCD. If I use LightBlue's Time profile I can get Current Time characteristic notifications once per second. What I need to do is to add a custom characteristic and make that send notifications either at a specified interval or preferrably when pressing a button. How do I do that?
I'm also all ears for other methods or apps that can help me. I can't program my own peripheral app because I only have an iPhone and I don't have access to a development environment for iOS at the moment.
Hoping for insights!
thanks!

Broadcast pop up message when iPhone devices comes in the iBeacon range

I have developed one application which will get connected with the iBeacon & will give notifications while user enters or exits from the iBeacon range.
Important Note :
I am using the inbuilt CoreLocation class to handle the iBeacon devices
Now with iBeacon device what I want to achieve is whenever any iOS device comes in the range of iBeacon it will send the pop up message to that device. It will be normal welcome message.
Kindly note that I do not want any application to get installed on that device. Still iBeacon should be able to detect the device through Bluetooth & send pop up message.
My question is, This is feasible ? If so how can It be able to send the pop up message to the any iPhone device that comes into range ?
Any hint or guidance will be highly appreciated.
Sorry, there is no way to trigger such a message if you don't have installed an application which listening for this.

iOS CoreBluetooth Notifications

Squirrels on my balcony eat my jalapeƱos. I pointed a camera to the place where my jalapeƱos grow and using a simple motion detection software on my computer on the balcony I know when squirrels show up.
I figured out how to establish a Bluetooth Low Energy communication between my computer and my iPhone (my computer is the central and the smartphone is a peripheral).
Is there a way how to invoke a push notificaiton using Bluetooth Low Energy that shows up on my phone whenever my camera detects a squirrel? I want to know if it is possible without an Internet connection.
In a word, no. Push notifications require an internet connection. However, do you specifically want APNS, or do you just want a way to wake up your app and display a message to the user when you receive a BLE message from your computer?
I believe you can set up your iPhone app to get BLE notices from the background. If you can do that then you can code your app to trigger a LOCAL notification (different from a push notification, but similar in terms of the UX)

Mi Band 1S vibration on incoming call handling on iOS

SO. Initial data:
Device Xiaomi Mi Band 1 or 1S
Device paired with iPhone
Xiaomi iOS app has option "Vibrate on incoming calls"
How they implement it? It continue works if you reboot device or force quit an app. It is unusual for default BLE background. Any ideas how this app handle events?
For people who vote for closing this question. This is a very interesting issue which require some specific knowledge about bluetooth and background. For example there are three bluetooth background modes: external-accessory for old-school non-ble blueooth, bluetooth-central and bluetooth-peripheral. I have done a lot of experiments about last two. But it does not work as you expected after documentation reading. I have found few questions about this topic here on SO. All of them report about pure predictable for bluetooth background. And after all hours on this issue you see on Mi Band and them official absolutely legal app in App Store. And this App keeps connection or has some other "magic" mechanism to handle calls and initiate reaction on device. At a minimum it is curious. Is it? At a minimum it is useful for developers who works with peripheral devices.
It looks like Apple Notification Center Service (ANCS) integration, not Bluetooth Background + Core Telephony.
The purpose of the Apple Notification Center Service (ANCS) is to give Bluetooth accessories (that connect to iOS devices through a Bluetooth low-energy link) a simple and convenient way to access many kinds of notifications that are generated on iOS devices.
Documentation
CategoryIDIncomingCall is about incoming call

How to send data to an iphone which is turned into a iBeacon?

how is it possible to send data to an iPhone which acts as an iBeacon?
I am looking for an process as the following:
Search nearby iBeacons
Connect to some iBeacon
Exchange data between the devices
Does anybody know how to put the different bluetooth functions together to make
this possible?
thx in advance
Standard iBeacons are transmit-only devices that can be seen by mobile devices, but don't actually "connect" to them or exchange data.
But you can still do what you are asking if you have an app on all devices as well as a web service to do the data transfer. This would allow devices A and B to detect each other when they are nearby and exchange data. Here's how:
Your app on devices A and B alternates between acting as an iBeacon (advertising its presence with an application-specific identifier and a phone-specific identifier) and ranging for iBeacon signals including the application-specific identifier.
During its ranging cycle, your app on device A will detect an iBeacon transmission from device B, which includes both your application identifier and the device identifier of B.
App A then makes a "write" call to the web service with a source of "A" and a destination of "B", along with any data you want to transfer, like "Device A says hello to device B."
The app would also periodically make a "read" call to the web service. In this example, device B would read any information destined for B, and the web service would return a record that device A had send it a message with the data "Device A says hello to device B."
Because the same process is also running on both phones, this communication can happen both ways.
iBeacon is a proximity technology and isn't designed for data interchange. However, since the Bluetooth stack is going to be active on your iPhone acting as the beacon (so it can advertise its proximity UUID), you can use Core Bluetooth to connect to the beacon and exchange data between the devices.
Does it specifically need to use iBeacon technology? The reason I ask is that from reading your description of the process, you could achieve the same thing using iOS 7's Multipeer Connectivity. It's able to abstract out all the technical complexities of connecting 2 iOS devices together regardless of the interface, be it WiFi or Bluetooth. I've managed to build something similar using MCNearbyServiceBrowser, MCNearbyServiceAdvertiser, and MCSession classes.

Resources