I've been working with iOS ANCS BLE notifications, it works great because our BLE accessory can receive app notifications 'out of the box' without installing our own app on the Apple device.
I'm newer to the Android development environment. Is there an equivalent for Android or does an Android app need to be running to push notifications over BLE. If an app is required is there a GATT standard I should be following similar to ANCS ?
I have been working with IOS ANCS as well, and like you mentioned it works very well without the need of installing an app on the app device. But Android does not provide something similar to this. You will need to write your own app and install it on the android device.
Its good to point out that IOS does not give you access to notifications but android does, which is why it its possible to write your own app.
Cheers.
Yeap you can use ANCS for android just add service UUID and Characteristics UUID your app and add characteristic in GATT service.Than callback
Related
I'm trying to demo android side service (content provider in ANCS lingo), that communicates with embedded device that supports Apple Notification Service (ANCS) notification consumer. Reason for this is, that the embedded device only supports ANCS. As the ANCS BLE side things are publiced by Apple, this should be possible and I've already added that service + associated characterics to android side gatt server. Embedded device is nordic nRF52 and SW is nordic ANCS demo. Demo works OK with iPhone and apparently with the desktop version of nRF control panel (if added with nordic supplied config and if you have windows machine, which I don't).
However I cannot seem to be able to bond the device with android, that's required before connection. The advertisement is in limited discovery mode (before bonding) so I cannot find it via regular scanning from settings. Also bonding from java code doesn't work. With mBluetoothDevice.createBond() I get ACTION_BOND_STATE_CHANGED callback with state 10 (BluetoothDevice.BOND_NONE) with old state 11(BluetoothDevice.BOND_BONDING). Apparently I would need to exchange keys here, but no idea how to do that.
Also dunno if anyone has done this same exercise before, but any other tips would also be appreciated! Thanks!
Problem was that the phone BLE stack was corrupted or in some invalid state. REboot and removing battery solved the issue with the bonding.
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
I'm currently working on an application that would communicate with a hardware device which will notify user when receiving any incoming push notifications from any apps, such as Facebook, Twitter, Messages. I have done the Android version already, However, I'm not sure if it is possible in iOS.
Ok, I found out that there's a way to work on this. Apple actually provides a service called Apple Notification Center Service (ANCS) to communicate with BLE devices for all notification data. This is probably used by device like Pebble smart watch as well.
For what I know, it is not possible. iOS apps are sandboxing.
Is it poosible BLE device(ibeacon) send notification to android wearable directly without going through Android Mobile?
If by "Android Mobile" you mean phone, than yes.
You just scan devices/pair etc. via BluetoothManger as it would be a normal Android phone.
Hi i wanna work with some bluetooth communication using my Android device.
How can i test bluetooth connections easy?
Let say im creating a simple application that will send the message "Hello World" upon connection. I would like some sort of server application console i could fire up on my iMac and have my android application connect to.
The server application should just be a console or something that displays all the data it receives and maybe a input to back a response.
Is there anykind of program that allow this ?
Or do i really need 2x android devices to create a simple server / client interaction with bluetooth?
this Android Bluetooth Chat App will be good starting point .
you can make this connect to the mac over serial port profile.
The example above is for the latest Android versions (it is possible to accomplish this with 1.x versions of android also, you will have to use the appropriate api that are supported in older android versions also)
For Programming in the Mac refer to This