I want to send a notification to an android app based on some changes in the watch accelerometer, the watch is gear 2 running tizen. I can send notifications from android to the watch but not vice versa. How would I proceed with this ?
You can create Producer-Consumer (Companion) App using Accessory SDK. One for Android and one for Tizen gear. Add listeners in Tizen app and send data to android app when there is change in accelerometer reading.
You can refer Accessory SDK for more developing conpanion apps.
Related
I am working on iBeacon based project to send the push notification to Android devices using Bluetooth wireless technology. Is there any way to send the push notification to Android device without any installed app over the Bluetooth? Basically, iBeacon is connected to Pi using Bluetooth and Pi (Pi 3 with inbuilt Bluetooth) will communicate with Android devices using Bluetooth. Following are the possible ways to send data/notification to Android devices:
By an installed app
Push notification through chrome using web-socket
But above both ways are not useful for my task. Kindly allow me to know if there is any way to do it.
You can use Google Nearby to send a notification to the device on beacon detection. Tapping the notification can bring up a website or open a Google Play Store page to install your app.
https://developers.google.com/nearby/
Does anyone know if it's possible to control a smartwatch app (Android Wear) through a smartphone app. An example would be to switch to another page in the smartwatch app by clicking a button in the smartphone app.
Yes it is possible, there are API's to communicate wearable. For example you can send messages between phone and wearable using the MessageApi. Check this training page for how. Or you can use BusWear library for sending events between phone and wearable.
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
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.
I am planning to develop an app for the gear (s) and a samsung galaxy mobile (note 3).
I want the user to be able to choose from a list (same like in the gear app of samsung) of all installed apps. The notifications of the selected apps shall get sent to the gear and the notifications of the apps that are not selected in the list shall get sent to another bluetooth device.
Since I know that the communication of the samsung gear is very weird, I wanted to ask if it is possible for my app to communicate with the gear S to rely the notifications to the gear.
Also, since the note 3 runs android and the gear S runs tizen, how does the communication have to look? Do I send my notifications as JSONs to the gear, or how can the gear know that it shall display the notifications?
Standard Android notifications are passed to the Gear using the method you describe.
There is a deeper mechanism that you can use called Rich Notifications. Part of the solution runs on Android and you can write JavaScript web apps to respond to the messages on Tizen. JSON is not necessary for Rich Notification. If you want to set up a two-way communication link between watch and phone, use the Accessory SDK.
There are sample apps in the SDKs showing how the communication occurs on both sides.