Offline cache of data in tablet for a asp.net MVC2 web app - asp.net-mvc-2

I need to give a survey(an asp.net MVC2 web app) to people on a tablet device. The survey runs on a browser which might suffer from internet outage, hence I need to have the device sync whenever its online. How can I cache data while the device is offline ?

One way of doing this would be with HTML 5 Local Storage.
http://www.kirupa.com/html5/html5_local_storage.htm

Related

Sync data between two offline devices running the same PWA

I developed a PWA that uses the IndexedDB/Service Workers to allow users to work offline. The problem is that different users working offline need to sync the offline data created. In this case one user depends on what the other have created in offline mode.
Is there a way to share IndexedDB between devices ? Is there another approach to send JSON to another offline device ?

Deployed Web ACS Service cannot access camera from Safari on iPhone

We are working on building a web application using ACS that would be accessed through the desktop as well as mobile devices. We've found a way to render the local and remote video on the screen from the desktop computers, unfortunately, there is no video stream being transmitted when using the website calling through the iPhone. Not sure if this might be the camera device selection problem, in all instances we use
const videoDeviceInfo = cameras[0];
We then proceed to pass in the videoDeviceInfo into the call that is initiated. Any ideas on what might be missing on safari that's working on the desktop would be highly appreciated!

LAN web server for testing my websites on my phone?

I am a front end web developer.
I would like a web server on my local wifi network for testing my websites on my phone. I am aware that there are several options out there but witch one would be best for quick testing of multiple websites (also a GUI would be preferable)
Thanks
What you want to do is pretty complex. You have to create and configure a DNS server then you have to configure your phone to get this DNS, etc.
If your phone is an android the best solution is to use your USB Cable and put your phone in dev mode, then you can debug your site with chrome directly on your phone.
how to: https://developers.google.com/web/tools/chrome-devtools/remote-debugging/
For iPhone i don't know if is possible. But the common solution is to use the simulator.

Electron app that opens a server or using sockets over the web

Im making an app that multiple players can connect to, but im brainstorming the best approach.
Im going to be using electron for the interface and then be able to use other computers to log in to website to join the game with multiple players.
I will use sockets to connect to each player, but what i am trying to figure out is whats the best approach for the interface.
Should i use express with electron to somehow connect to the same website the players are on?
Is it possible to make the electron app start up a server and have my website direct to the computer that is running the electron app?
Or my other option was to just continuously upload and download from a database, but I feel like that would not be very efficient.
You're on the right track. I would suggest using a WebSocket based server / client architecture.
The server application is continuously running and handles inter-player communication as well as providing a database. The database could be integrated in the server application as a starting point, and, depending on your needs concerning scalability, be extracted as a standalone service in the long run.
Client applications could then come in many forms (a website, a desktop application, a mobile app). Using electron is a great way to enable cross-platform desktop application development that is adaptable to any of these scenarios, possibly also enabling to extract the contained web application as either a hosted website or even mobile application (using, for example, react-native or nativescript).
Good luck!

iphone XCode-Wifi connection

I am a beginner in iPhone development. I have a single static IP server in my company. I have one web service on that server which gets data from an intranet MSSQL server. I would like to get that data over WiFi to an iPad app, but only over our intranet.
Have any useful links or a sample project? I am using XCode 3.2.6.
It sounds like this is a simple web service consumption scenario, so I would start with consuming it using JSON as the transfer data format and using NSUrlRequest.
Here is an article that walks you through everything you need to know in almost painful detail. It should get you where you wish to go.