samsung gear app communication - android

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.

Related

How to send notifications from a phone to device connected via BLE

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

Smart Watch Tizen Samsung Gear S3 smartwatch native app with Phone companion app over bluetooth

I would like to know if it is possible to create Tizen native apps on Samsung Gear S3 (running Tizen) that make use of the Human Activity Monitor or other Samsung Api in a way that does NOT require using any internet but to directly transfer data gathered to my own Phone App over Bluetooth without Samsung having access to the communication between my watch and my phone. So I don't want to use Samsung Gear "Manager" or S-Health or other methods which I "think" would give Samsung potential access to the Data Stream sent from my custom Watch App to my custom Phone App that receives the data over Bluetooth.
( One reason I ask is I read at a link on developer.samsung.com forum someone say: "You should write your own wearable app to measure continous heart rate, and the app need to communicate with Android host app via SAP(Samsung Accessory Protocol) so that your Andorid host app to be able to get coutinous heart rate data from a wearable device. So the app type should be companion type.
Remote sensor SDK does not support HRM." And if I am forced to use some "SAP" Samsung Accessory Protocol it sounds like it goes through Samsung Gear Manager or other method where Samsung can get a copy of the Data Stream? Or not true? )
That's the first part of the question, second question are there any Native examples of using the Hardware Sensors on the Samsung Gear S3 "directly" without using Samsung's own provided "Human Activity Monitor" Api etc?
Also, is the source code behind Samsung's Human Activity Monitor API and other APIs they provide, is the source code available to these SDK and APIs or is there plenty of "closed source" running on the Samsung Gear smartwatches?
In Tizen, you will be able to use Bluetooth functionalities such as managing the local Bluetooth adapter, bonding, and exchanging data between Bluetooth-enabled devices instead of using SAP. The Bluetooth standard provides a peer-to-peer (P2P) data exchange functionality over short distance between compliant devices.
You can also use Pedometer and Heart Rate sensor instead of using Human Activity Monitor(HRM) in Tizen Native app.
For all the available sensors api in Tizen go here.

Android Wear: Control smartwatch app through smartphone app

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.

Android send notification message to device without client app installed on the device

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

Synchronize notifications on multiple devices

I have an App which allows the user to send images to other users. It is available for Windows (x86), iOS (tablet and phone), Android (iPhone and iPad) and Windows Phone. Now, if a user is working on a Windows PC and his Smartphone is lying next to him, he gets a notification on both devices, this is could become very annoying.
Are there any known solutions how to "synchronize notifications" on multiple devices? (Only one notification is shown on the used device)
For example skype has solved this problem with his so called "active endpoints"-feature. Does anyone know how they could have implemented this?
Essentially, this feature is totally built-in to PubNub - indeed it's the raison d'etre of PubNub.
http://www.pubnub.com/blog/five-ways-you-can-use-pubnub-presence/
"Presence detects when users enter or leave your app, and gives the online/offline status of machines and devices connected to your app..."
Maybe you need to ask a more detailed question - "Can I do 'active endpoints feature' with PubNub?" - either here or on the PubNub forum.
Note that if you're using Parse, that is basically now back4app.com.

Categories

Resources