How to make a Web App that works with beacons? - web

I know you can work with beacons with a iOS app or Android app.
But you can work with a web app to?
(A website recognize a beacon and do something)

Unfortunately, the general answer is no. You need native components to detect Bluetooth beacons on both Android and iOS. The web browsers on both operating systems have no hooks to detect beacons via JavaScript or HTML.
Chrome OS does have Bluetooth bindings in its Chrome browser, which may allow you to build a web app on Chrome OS that does this. But this would really be a Chrome App not a general purpose web app.
The Chrome browser for iOS and Android also detects Eddystone-URL beacons, but it will not pass the detection info to a web app. Detections are sent to the user as a notification and tapping on that notification simply brings up a configured URL in the Chrome web browser. This does not allow any dynamic web app behavior based on beacon detections.

Related

How to create a browser instance (pupeeteer) with firebase and use it in my app (node.js)?

I created a firebase project. This communicates with a mobile application (node.js). As part of this project I want to use pupeeteer.
I have no problem launching functions using pupeeteer in firebase.
The problem is that I want to make the user perform actions. So I have to display the web page (pupeeteer) in the application via a browser generated by the server (with a firebase function?)?
However I have no idea how to launch a browser instance in the background and close it at the end of processing?
Can you help me ? Is this the right solution?
I want to use this :
This library does 2 things:
Download the chromium binaries and launch a Chromium process.
Connect to this process with Websocket and send json commands to control the browser.
Due to limitations on mobile platforms (iOS and Android), it is not possible to launch an external Chromium process on iOS and Android. So, step 1) does not work on mobile.
You can still use puppeteer-dart on Flutter either with:
Flutter on Desktop (macOS, windows, Linux)
Flutter on mobile BUT with the actual Chrome instance running on a server and accessed from the mobile app using puppeteer.connect
The pub.dev website reports that this library works with Android and iOS. The supported platform list is detected automatically and can't be manually modified to express the current limitations

Chrome extensions interacting with Progressive Web Apps (PWA)

Does anyone know if it's possible for a Chrome extension to interact with a PWA? Since a PWA installed by Chrome seems to be just a Chrome wrapper for the web application, perhaps Google still allows extensions to interact with the PWA.

Custom Chromecast sender API - possible?

I'd like to examine the possibility of writing an unofficial Windows 8 (WinRT/Metro) sender API for Chromecast. The goal would be to allow Windows 8 Store apps roughly the same functionality of iOS / Android apps through the official sender API available for those platforms.
I've noticed that, although the inner workings of the API haven't really been exposed yet, some of the source code for the Chromecast device is available, and there's an unofficial emulator for the device out on Github (https://github.com/dz0ny/leapcast).
Is this possible, given how Chromecast devices seem to take commands directly from Google?
ChromeCast is using a proprietary protocol called RAMP (Remote Application Media Protocol) to do media control. Once you have setup your ChromeCast device for development, the device will open a port for remote Chrome debugging. Open Chrome at your ChromeCast device IP address port 9222: http://192.168.0.x:9222/
You should see a page with a link to the receiver page of the currently running ChromeCast app. Click the link and then use Chrome developer tools on that page. Take a look at the network and console tabs to see the RAMP commands.
I have open sourced an Android app that shows you how to discover ChromeCast devices and setup the Websocket connection to handle the RAMP commands: https://github.com/entertailion/DIAL

Video streaming from mobile to desktop using node.js and websockets

We are using the following sample to do a video streaming POC in one of our apps:
http://francisshanahan.com/index.php/2011/stream-a-webcam-using-javascript-nodejs-android-opera-mobile-web-sockets-and-html5/
The POC uses Node.js and websockets to do a real-time video streaming from Mobile (using Opera Mobile browser) to Opera browser in desktop.
The app was working well a couple of months back. Recently we had format the OS in mobile with Android 4.1 Jellybean and re-installed Opera Mobile.
With the same browser settings, the video streaming now doesn’t work from mobile. The streaming works from another Opera browser instance on the same PC though.
With the logs we could see that the messages are sent successfully from the server, but the onmessage event doesn’t get triggered at all at the receiving end on the client.
Currently we are using Opera 12, that has the support of both Websockets and getUserMedia for streaming native web camera.
We have tried other different Opera browsers available for both mobile and desktop, but with no luck.
Any suggestion on getting this woking?
Thanks

deploying j2me application on old handsets

I was to develop a simple j2me application for microworks. The application is to send sms.
But I found that most of the mobile phone they carry are very simple and even some of them don't have Bluetooth, infrared, browser. How to make it work out?
We can assume configuration as nokia 2100, nokia 1616. How am I supposed to deploy my app on such handsets?
OTA is required to work on every MIDP mobile device, just navigate with the device browser to the jad URL and click it.

Resources