I'm currently doing a project for showing a slideshow (build in HTML, CSS and JavaScript) on a television, using a Raspberry Pi. Now I would like the slideshow to be displayed even when the Raspberry is not connected to the internet. Does anyone have a solution or idea how I could solve this?
If I am understanding your question correctly...
What you will need to look into is service workers!
Important note: They only work on trusted websites: Sites with https or on localhost (for testing purposes)
Here is a tutorial on offline support with service workers: https://css-tricks.com/serviceworker-for-offline/ But there are other great tutorials out there too!
Related
I'm working on a test project to start learning about service workers and progressive web apps.
This project is hosted on github in https://github.com/Pablo-No/Privado1, however, when I download it as a progressive web app in a mobile phone some images aren't loaded correctly and alt text is shown instead, I don't know how to fix it, probably because I don't know how service workers and progresive web apps work, and that's why I'm working on this project.
In my computer it works perfectly, even when the app is downloaded without connection to internet (thanks to the service worker, I think). I've seen some similar issues, but I think they're different, however I may not be correct and I'm sorry if this issue has been answered yet.
I've used Chrome and Chrome mobile with the desktop and the mobile phone (the mobile phone uses android).
Actually I've made it works properly by using code in https://codelabs.developers.google.com/codelabs/your-first-pwapp . I hope this question and answer helps other people if they have the same issue.
I am developing a new app for android. I tested PhoneGap the last days and I think it is a very good platform to develop an app.
I started developing and now I have some security concerns.
Online
All the JavaScript gets hosted on my server and the app needs them to start.
Offline
I have my JavaScript in the app and it just validates some files before startup.
I want that my app is working online and offline.
Problem
If the files are offline every user (with root) can edit the code. The user can remove for example the In-App Purchase and the file validation for the offline mode.
I searched through the internet and I need so say that I didn't found a good answer how to secure my app.
I hope here is somebody who can give me tips or ideas to make my app working online and offline with beeing secure. Thanks!
Probably there is no bulletproof solution to make hybrid apps secure, however you could obfuscate your code using tools like https://github.com/mishoo/UglifyJS. Although not safe from reverse engineering, uglification willl make more difficulty to modify the code.
I want to be able to create an offline program that can use the browser as GUI. I'm not particularly good at GUI programming in general, and overall it seems that using HTML and CSS to structure a GUI would be the easiest.
Cross browser method is preferred, but I will most likely use Google Chrome
I need to be able to open an external program, possibly with command line arguments
Javascript seems like the best language for this, however as far as I know it isn't possible to launch programs with it.
This is on Windows 7.
That's a good idea and is done by a several popular softwares.
The best way is to make your offline program run a web server that the browser will be able to access.
ie: Your program starts a web server on localhost:5555 and then you'll be able to request http://localhost:5555/users in Javascript, from your browser.
Another approach could be using a UI framework like AngularJS + local storage. I'm working on an app right now that will be used online (connected to the web), online locally (connected to a local server that is not connected to the web), and offline.
You could build a single-page web app and let Angular manage all the "urls".
When experimenting some things with WebRTC. I looked at some examples and downloaded one from github. This wasn't working at all. At the right side of the url, there was an icon that indicated that my webcam was blocked. I clicked on it and said that it could use my webcam. Then chrome said to reload the page so i did that. And everything was the same as in the beginning. But when I loaded the same site through jsfiddle, it asked me with a pop-up for webcam access (the same way as every other application does) and that worked without a flaw. I tested some other browsers and it was all the same. Does anyone have a suggestion how to solve this problem? Thank you!
In order to use the web cam API, the file must be run from a server. When tyou run it from JSFiddle, it runs on a server, and thus works. It wont work if you run it as a file:/// in your browser, you must run a local web server on your computer and open the web app from there as http://
Running a server
Well running a webserver could be very complex, and requires knoweldege in using softwares like apache or ISS. Luckily enough, for develpers just seeking a simple, straight forward webserver for client side development, there are a couple of easy solutions:
Windows: use a software called WAMP - it automaticaly runs apache on your machiene and creates a folder on your computer in which you can put all the website content. http://www.wampserver.com/en/
Mac: simillar to WAMP, mac has a piece of software called XAMP that does pretty much the same thing. http://www.apachefriends.org/en/xampp.html
Both are pretty simple, but I think will be enough for simple front end development.
Chrome blocked my webcam on a site where I denied access multiple times (because I was testing).
You might need to visit chrome://settings/contentExceptions#media-stream and clear your settings.
I want to start a basic sip to sip calling through browsers using WebRTC and SIPML5 on windows. How can I start? I am able to do video chat between browsers using WebRTC. But my requirement is to prepare a demo to demonstrate their usage so that it can be integrated in a enterprise solution. At this level i can't go for any paid servers or softwares. So, Please provide the references for the same.
Thanks.
probably you need to build the source code as first step , on your computer and work on your code (Client and server side) part as you like and test it on a running local server and After you have tested this Web application and if u satisfied with its performance, you can deploy it to the Web server you make available to your users
good luck,