Native web-app detecting phone activity - javascript

I’m building a web site which will also work as a native web-app using mostly client side technologies.
I was wondering if there is a way to detect a mobile activity using javascript or any other client side trick?
My goal is to be able to stop playing a video while the user answers his call or responds to his text message.
If not through client side then is there a way to do this without having the user install my app?
Thanks a bunch
Moshe S.

Related

convert HTML5 to mobile app and use pop out messages

is it possible to convert web (social)network made in HTML5 to mobile app? And then enable pop out messages for android and iOs?
If not, what would you suggest?
I'm trying to make some kind of social network and I'm having trobles deciding how to do it. I'd like to make an app and put it on app store or i-store. I know how to do it with html5 and java script, but I don't know how to convert it in to app and give it function of a pop up messages.
you can search for progressive web app(PWA) development which enables you to do this

How does Arduino(Sigfox) send informationto Mobile application

i am a newbie in Javascript and i have a question regarding passing of information from Arduino all the way to a mobile application.
So first of all, in the mobile app that i will be creating will only consist of Javascript, html and css.
The things that i will be using:
-Arduino Device
-Sigfox add-on
-cPanel
-Mobile app
I will be creating an IOT device with arduino and a Sigfox add-on (Which passes a small byte of information to their Sigfox server) But the question is, how do i get sigfox to send to cPanel and how to get cPanel to send to mobile app?
*I do not need any code.. but just some guidance of how it works from getting Arduino device all the way to my javascript mobile app.. Thank you
I documented a project that did what you needed.
In this project, I hooked up a button to my Arudino UNO. When the button is pressed, it will send a message through the Sigfox backend to my virtual server, and then finally as a notification to my mobile phone.
Take a look at it here, am happy to assist further should you require any assistance.
https://jacksonng.org/zoe-helper-sigfox-sos-device-part-1

Opening a JavaScript based Android app remotely using NodeJS

I'm writing a JavaScript based Android application (using PhoneGap) to track patients' compliance with their medical regimen. This requires the app to run in the background and remind the patients at specified times to take their medication. Since PhoneGap based apps do not run in the background, I was wondering if I could remotely start the app on the patients' phones (assuming I have their permission, of course) using NodeJS (which I'm using for this app anyway - to gather the compliance data).
Alternately, I was wondering whether I could trigger a dialog box on the mobile phone remotely using NodeJS.
I'm sorry if these questions sound silly... I'm new to this stuff.
Thanks in advance.

Websocket server and Mobile clients

I have a Tomcat based server which serves as a Websocket end point (used javax.websocket) for my web based JS app. I am serving out json based data (queried from my database) via the web sockets. I am not using websockets to serve out HTML/JS pages.
Now we are building a native mobile app of our JS web app. There doesnt seem to be good native support for Websockets on Android and ios.
I would like to keep the server code base common to both JS client and the mobile client.
What would be your suggestion for such a situation? Write a different server for mobile clients?
I found this http://www.elabs.se/blog/66-using-websockets-in-native-ios-and-android-apps. They suggest SocketRocket for ios and https://github.com/TooTallNate/Java-WebSocket for Android.
I have never heard of these people / companies. Not sure of their antecedents and if their apps are bug free.
Any suggestions would be welcome.
I'm not sure if this is the answer you are looking for, but I tried this once, and decided to use a webpage that uses the websocket. Each app will display a webview accessing the page. All recent iOS SDK versions support this, but only the newer (4.4+) Androids will.
If you do not want to use webviews, I recommend Tavendo Autobahn for Android. I had a problem that my server's websocket would disconnect all the time. I had to implement a reconnection routine every couple of seconds on the app.
Hope it helps :)
I'm using this library on android for websockets https://github.com/codebutler/android-websockets
Works good with Spring WebSockets.
Sorry for messy answer, I'm in hurry, write in comments if u have questions

Video chat using html5 javascript hibernate

I have built a chat client which is presently working on javascript, html5 and java (Hibernate). I am planning to add video chat over it. I do not want to add flash, so the only way to obtain webcam access, to my knowledge, was to use HTML5 other than silverlight (not so great reviews) and applet. The problem is how do I send the video stream of one chat user to the server and back to the other chat user who is on the other side of the chat. I have searched and found out that RTSP is not going to be implemented in Chrome. So do I use HTTP for this? If so, could you provide me with some guidelines. If not what are my other options?

Categories

Resources