I'm trying to understand how even the chinese smartwatches retrives the notifications that I receive on my iPhone, even without any dedicated app installed, all via bluetooth.
My goal is to use a BLE module (like an esp32 or so), connect it to my iPhone like if it is a smartwatch, and receive something on BLE when I receive a notification on my phone.
How it works, or how this "function" is called, so I can do I research online.. at the moment I did not find anything.
thanks in advance
Related
I am trying to develop a companion app for a project of mine.
I want this app to relay incoming notifications on my phone to a device connected via BLE. This device will then display the text data on a screen, similar to a heads up display so that I can use it in my car and not have to go through my phone while driving (also illegal of course).
I want to know what is required for my app to be able to get notifications, and send it via BLE to the already connected device. I'd also really like to know if this can be done for an iOS app since I would prefer to end up with the final app being built for iOS. If not, android is fine for now.
This device is an ESP32 and will run its own code to execute actions when text is received.
Thank you
I'm looking for a feature I'm finding surprisingly difficult to research.
I want to emulate a feature I know from another app in my own.
Here's what the app does:
it is a baby monitor, one device is in a room, and on noise (in the use case of the app: a crying baby), a push notification to other, connected devices is triggered
the other devices are connected via the internet
when the notification is triggered, the receiving phones play the streamed sound from the room, not just briefly, but continuously
this works even if the phones are locked
it works both on iOS and Android
I would like to send such a push to a self-written app. Sender would be some server, receiver would be Android and iOS devices.
How is this type of push notification called in iOS and Android terms, respectively? Where can I find documentation for it?
I'm building an iOS and Android application and want a user to get notified when he'll be in the proximity of a Beacon. I am looking to understand the following cases whether the user will be able to receive the notification:
If the application is in the background and the user has come into the proximity of a Beacon, will it allow the application to send him a local notification?
If the application is in the killed state and the user has come into the proximity of a Beacon, will it allow the application to send him a local notification?
Which Beacon will be best for my use case?
any help here will be appreciated.
1. Yes
2. Yes
If an application is killed, you have to make sure that on Android you run a background service that listens for beacon proximity and make sure it does not get killed by the system. On iOS side you should setup background beacon scanning with Bluetooth LE accessories usage turned on in "Compatibilities" which will not get killed by system if setup correctly.
If your Bluetooth device is NOT a Beacon and just streams some advertisement data over the air, then on Android side you should be able to setup background Bluetooth scanner, while on iOS it will not be possible to do such a thing if a Bluetooth device is not connectable (even with connectable device it will be hard).
Those services could launch local notification when beacon enters required range.
3. Any
Answers are valid if Android and iOS applications are setup correctly and Beacons are TRUE beacons and not a random Bluetooth devices that stream advertisment data.
Good luck :)
I'm developing an android application using BLE. I've implemented all the basic operations like discovery, connection, and data transfer.
Now I was looking for BLE notifications, Is it possible to receive notification from BLE device when the application is not running (not even in background).
What I want to implement is the notification similar to GCM/FCM, we receive notifications in our app even though app is not running.
So want to check if similar notification mechanism is supported by BLE devices and Android framework.
I've searched for few hours now but didn't get any proper result.
If anyone can just tell me if it is supported or not?
Now I was looking for BLE notifications, Is is possible to receive notification from BLE device when the application is not running (not even in background).
BLE is just a communication protocol. When someone talks, someone has to listen.
What I want to implement is the notification similar to GCM/FCM, we receive notifications in our app even though app is not running. So want to check if similar notification mechanism is supported by BLE devices and Android framework.
GCM/FCM works because Google Play Services is running on the device listening for messages.
I can imagine two possible cases based on your question:
If by "receive notification" you mean a change in a Bluetooth characteristic - well your app should be running already. Only you know how to talk to the BLE device.
If you want to implement a location aware beacon type behavior with BLE you may be able to leverage the existing Google Nearby feature to achieve the desired effect.
I would say no. You need to have the app running to get Bluetooth callbacks. You should simply set up a Foreground Service in your process and that will keep the app running in the background.
If you want to receive notification event if your app is not running, you should implement Android service that continuously scan for BLE frames and ones it catch some frame that is met some parameters (for example for iBeacon it will be specific Major and Minor values; for Eddystone URL -- some specific URL etc.) -- just send intend to start your application.
I would like to know is there any way to send notification from a server to an Android device without a client app installed on the device. Does android OS has such functionality. Based on the answer here Does Android support near real time push notification? Google Cloud Messaging do similar things, but it seems the client app need to be installed on user mobile.
Basically what I want do when an android device comes in range of an iBeacon
I need to send the notification messages to the user mobile.
Is there any way to achieve it. Any possible solution?
Edit:
The real scenario is like,
I have the beacon placed in somewhere, when the a device comes in range of the beacon, some how I have to detect the device(if the device Bluetooth is on) and get some id of the device send notification from cloud server. Where as the device(Android phone) don't know the beacon is there, or there is no app installed on the device to detect the beacon.
I am not sure whether it's possible to achieve the above goal in such a scenario.
Please let me know your valuable feedback.
Chrome 42 or higher for Android supports push notifications from websites, which allows you to send notifications without installing an app.
If you're specifically looking to start notifications from a beacon, Chrome 49 added support for beacons