I need to write a code to get the address of the device, CONNECTING to my site
So, for an instance, I visit my website with my phone. On button click, I need to get the Bluetooth address of it.
I've seen some examples showing how to get addresses of nearby devices. That's not what I need.
I don't have time for a proper research now, so if you have examples, please, share them with me.
I'd really appreciate your help.
There is this experimental API, but it’s not enabled by default
https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice
Normally a website can not access such private device information, but apps that a user chooses to install can, such as an app written with ReactNative.
Related
I'm using WebBluetooth API in Chrome 80 with experimental flag enabled.
I can retrieved all nearby devices' info with navigator.bluetooth.requestLEScan.
However, when it comes to the current device that I'm making scan from, there doesn't seem to be a way to retrieve information about it.
Is there anyway that I can retrieve information of the current bluetooth device?
I couldn't find anything from here, here, nor here
Web Bluetooth does not have a way to get information about the central device. Please use the GitHub Issue that you filed to discuss use cases for this feature.
I am trying to make an app which constantly makes the transmitter of the mobile phone send out RF signals and receive the same signals when they are reflected back and detected by the receiver of the mobile phone.
I tried using my brain and searching on web to see how this is possible but i am not able to find an answer, so is it possible to make such kind of mobile application which can control the transmitter and receiver of mobile phone or even Bluetooth and WiFi because those are also RF signals!
if yes, please guide me briefly or share a tutorial link!
In my experience with iOS there is no device with RF chipset. So for iOS the answer is NO. I checked google too (several searches).
You can see the official specs of iPhone X. Nothing that related to RF.
If you really want to go far, check for external hardware (I hardly believe you’re going to find any)
You also have to be careful and make sure that you won’t breaking the iOS AppStore guidelines or your app will get rejected.
Good luck!
I've been looking around for a way to monitor asterisk extensions, just like a BLF, using a web page.
I'm building an ASP.NET web app to integrate with the users phones,
and I want 300 users having the extensions field on their web page updating in real time.
I know FOP2 does that pretty neatly.
I'm not expecting anyone to lay down a perfect solution for me,
just a general directaion.
Thank You!
Use AMI to read a list of SIP devices, then use that list to query the device status of each SIP device. Then show the icon status of each SIP device.
Without knowing more of your use-case, that's about as exact as I can get.
https://wiki.asterisk.org/wiki/pages/viewpage.action?pageId=4817239
https://wiki.asterisk.org/wiki/display/AST/Device+State
When I am creating google map on hybrid app and network suddenly disconnet, the google map show nothing after network has been reconnected. I got a error message as below and try to reload google map javascript again. Sometimes the map was created success but always failed. Is there any solution for this problem?
GET http://maps.gstatic.com/cat_js/intl/zh_tw/mapfiles/api-3/16/2/%7Bcommon,map%7D.js
net::ERR_PROXY_CONNECTION_FAILED %7Bmain,places%7D.js:10
GET http://maps.gstatic.com/cat_js/intl/zh_tw/mapfiles/api-3/16/2/%7Butil,stats%7D.js
net::ERR_PROXY_CONNECTION_FAILED %7Bmain,places%7D.js:10
watchPositionError 0
I know it can be annoying to think about, but at some point you just have to put it out of your head, and an important thing to take note of is sometimes the user will enter into situations where your app doesn't work exactly as you want it to, and it's out of your control, for example if the user disconnects the internet.
Another example of this would be if the user doesn't support cookies, or if they don't support javascript. As a developer, you won't always be working with the resources you need to build software for every person on every platform and in every scenario. Sure google has the ability to handle internet disconnect/reconnect in google drive, syncing up to the server when a connection is re-established, and Twitter has a mobile site that supports users who don't have javascript. As a developer you will have to make a judgement call on what is and what isn't a must-have feature. I'm guessing this isn't a must-have feature.
I know the title is a bit off, but what I'm asking is if it is possible to have a python script on my website that can detect if my Android phone is connected to the computer Im using to view the page. I don't know if this is possible since I think python is server-side, but maybe this is possible to do with JavaScript? I'm fairly new to programming so I may not be as smart as you guys out there but if someone could just lead me in the right direction I would be grateful.
What you're looking for is not TOTALLY ABSOLUTELY impossible, but you may need some help from the computer you connect the device to, from the browser you're visiting your site with or from the device itself. Some possible options:
have a program running on your computer which checks if the device is connected and pinging a certain URL on your website if it is.
write a browser plugin which checks if the device is connected and exposing the information via some JS API - the JS code on your site will be able to use it.
have a program running on your device which pings your site each time the device is connected to a computer.
Admittedly, all the solutions are from the "tricky" category :)
What you're looking for isn't possible and should not be possible for security concerns. Do you want someone knowing what devices you have connected to your computer? You're essentially wanting a device sniffer but a website would not be capable of accessing the client's machine in this manner to access the desired information.