Get income call event via Bluetooth - web-bluetooth

I have a phone and a simple site providing a list of numbers and names.
Is it possible to pair my phone with browsers via Bluetooth and pass an incoming number to the site in order to show the name of the caller? If the number isn't listed you have to fill it. So, I want to type using the Desktop browser and receive a call using a phone.
I'm using a web platform to store my client base. I tend to keep it on the web without coding Desktop API.

Typically, when you have something like a Bluetooth headset, the headset is a peripheral.
central -> peripheral
-----------------------
headset model | phone -> headset
desktop model (A) | phone -> browser
desktop model (B) | browser -> phone
(A) is currently impossible with Web Bluetooth because, as of now, Web Bluetooth only supports using the web browser as a central, not a peripheral.
(B) may be possible, but it really depends on the mobile OS. You would have to introduce special app to replace or augment the phone app on the mobile device so that it would act as a peripheral.

Related

Can I use a single device to control other devices in the Home Graph?

I would like to build a Smart Home device that can be setup to control other devices in the Home Graph. What's the cleanest way to do this?
For instance, if a press on an Amazon Dash Button created a data flow:
Dash Button sends MQTT -> Server IoT Receives --> Forwarded to Google Cloud --> "Turns on TV, Turns on Lights".
I understand / assume that I cannot directly control 3rd party devices using my own hardware.
Is it possible to control devices through Google Home using the Google Assistant SDK... But I'm a little confused how my custom Amazon button (or any hardware) would fit into the larger picture. If it calls the Google Assistant SDK, it's not a Smart Home Device anymore, is it -- Not part of the Home Graph?
There is no API for you to directly control other Home Graph devices from your Home Graph device.

square point of sale/connect api - 2 devices?

I work for a repair shop that recently decided to implement a square chip/card reader. Up to this point, we have been manually entering credit card numbers into our internal silverlight app running on a pc on our domain.
We ordered the square point of sale system that includes chip reader, ipad, stand, the whole bundle.
We looked at the square pos api, which targets iOS and Android platforms, but also has a Web api for non-native apps. The api is supposed to be able to switch control from our browser based app to the square app to allow a customer to swipe their card, and upon completion, the api switches control back to our app.
Since the system is based on web api calls, we envisioned initiating the sale from our app running on our pc by calling the api, and control would be passed to the square app on the ipad.
However, when we contacted square about this system, we were advised that our app and the square app had to be running on the same device (the ipad in this case).
But it's a web api. Geographical separation shouldn't matter.
Has anyone implemented a similar architecture with a square device? Or does anyone have a potential workaround?
The web request must be initiated from the same device because it uses native App linking/ Intents to switch between the browser and the Square Point of Sale app. You can not currently initiate a transaction on a different device. The "web" in "web API" means that you are starting from a website (as opposed to a native application), not in that the request goes over the web.

creating media controls on android wear

I want to create a wear application that has 2 mode : the connected mode and the disconnected mode. The first mode is used when the watch is connected to the bluetooth : you can control a media player and have the basic controls on what's being played on the phone.
The second mode is used when the mobile is not paired to the watch : you can listen to content on the watch with a bluetooth headset.
My question is the following : on the connected mode, I created my own interface with the basic controls (play/pause/next/previous) and I can synchronize the controls with the phone sending messages via the message api.
Is there a better way to do? Like using the Notifications?
If you want to have the basic media controls on your wear device (controlling then playback of your media app on your phone), then you can use the MediaSessionCompat to handle that for you; take a look at the UniversalMusicPlayer for example; basically if your media app is using the MediaSessionCompat (or MediaSession if you are not concerned with earlier versions of Android), then the basic controls should appear on your watch and if you implement MediSessionComapt.Callback in your media app, framework will send the control commands to your app from your watch.

how to dial a number and a code in winphone

In a windows phone app, how can I dial a number and then a code after the phone answers similar to the Nokia Conference app? It seems to be using something different than the PhoneCallTask which does not allow you to do anything special. Thanks
I can assure you that this is NOT possible in WP7 or WP8 for average mortal developers.
Apps like Nokia Conference app get special (OEM) access to libraries that us muggles don't get.
For example the phone call intercept library and SMS intercept libraries.
Perhaps, just perhaps, in WP 8.1 you will be able to create a phone dialer app and be able to allow the user to assign your app as the default phone dialer. Then maybe you can do what you're asking. Currently in the WP7 and WP8 worlds though, this is black magic.
MSDN Question: Windows phone programmatically intercepting incoming phone calls through app
Reference MSDN - Certification Requirements - Phone Functionality Section 5.3
5.3.1 - Phone calls: The app must not delay or prevent the user from initiating a phone call, answering an incoming phone call, or ending a phone call.
You can apparently do this with a VIOP call

How can i receive the hardware key button event On Windows phone 8?

How can i receive the hardware key button event On Windows phone 8 App?
I have many problem,
The WP 8 is available features are very limited.
The Windows CE / WM is a very different behavior.
I want to access the OS Layer by the API (Function)
Back button : Success. I found this key event.
Home button : ??? (I don't know)
Search button : ??? (I don't know)
Volume Up / Down : Just working volume.
Camera Key : Can i change the default camera app?
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202963(v=vs.105).aspx
Power Key : Can i optionally lock the power key?
OEM Key (Barcode Key) : Push the button, I want to execute the My App?
[Additional]
Sorry. My Project information was too little provided.
I developed the WP8 App in the WP Device OEM Manufacturers.
So I can access to "OS, Device Driver, App".
But there are various MS documents, By First Time, The developement is too hard.
Have you ever used these methods can I?
- Named Event
- SendMessage / PostMessage
- Other Communication
I guess the Key-Point "How can i communicate Device driver <-> App"
I am studying now the following Function.
- Service Agent
- IPC
You cannot access the majority of those buttons, by design. By not allowing applications access, it means the end user has a consistent experience with the standard platform.
You can create a new "lens" to act as a replacement for the default camera application.
That's not to say though as an OEM, that Microsoft would not provide additional access that is not available to a standard "Store" application. That type of access is often protected by a non-disclosure statement however.

Resources