offline

Storing REST requests with service workers to sync them

天大地大妈咪最大 提交于 2019-12-03 10:30:29
问题 I'm thinking about taking my application to offline using service workers. I'm already achieving satisfying results with caching resources, but I also have to check onfetch whether I'm connected to the internet, if not - store the request, and push it onsync. I understand, that future onsync will help with that, but I need - even temporary - solution for that. I've tried just to store the requests in an array within worker, but it's not persistent - doesn't work after computer restart (while

Is it possible to embed a local web server into phonegap project?

纵饮孤独 提交于 2019-12-03 10:03:40
问题 I need to build an offline Phonegap app. However, all of my js functions need a web server to run well. Is it possible to embed a local web server into phpnegap project? 回答1: Yes, it's possible using a Cordova HTTPD plugin: https://github.com/floatinghotpot/cordova-httpd I haven't used it yet, but I may need to with my current project. One drawback is that if the IP address is known, others will be able to browse the hosted files. Before I deploy, I'll be changing that behavior. 回答2: Now it

iPhone web apps running as native apps

僤鯓⒐⒋嵵緔 提交于 2019-12-03 09:48:11
问题 The browser on the iPhone is capable of using advanced web technologies introduced in HTML5. One of these is the app cache that allows web pages to run on the client, from the cache, without a connection to the internet. Together with Local Storage you can also save data permanently "in" the page. My question is, would it then be possible to make a website that when visited and set as a web clip (bookmark on the home screen), could be accessed again, at any moment. Using HTML5, Javascript and

Offline Image To Text Recognition (OCR) in android

荒凉一梦 提交于 2019-12-03 08:51:44
问题 How to build the android native SDK for image to text recognition. (I have done well with some APIs from web services. But this time, I just want to make the app without any Internet Connection, no APIs, and no Web Services. Just an offline OCR app). So my question here is how to crop each and every word containing in the image? how to compare the cropped text with the alphabets and characters? 回答1: I guess u can use Tesseract OCR Tool, an open source alternative by Google. How to integrate

Mathjax offline for web view

廉价感情. 提交于 2019-12-03 08:37:35
Using webview to render math content by linking mathjax cdn for react native is common. But how to approach the problem of making it offline. Is there a way to locally maintain that bundle? Is it even prefered? What will be the size of the bundle ? I dont want my app size to go beyond 10mb. file:///android_asset/MathJax/Found the solution. Download your mathjax from http://docs.mathjax.org/en/latest/installation.html into => android/app/src/main/assets/ Now in your webview html code set script reference to <script src="file:///android_asset/MathJax/MathJax.js?config=TeX-MML-AM_CHTML"></script>

how to build a php mysql application that works offline

南楼画角 提交于 2019-12-03 08:24:20
问题 I have a web applications that stores data in a MySQL database on-line. It also retrieves data using PHP code, performs calculations on the server and sends the result back to the user. Data it's quite simple: names, descriptions, prices, VAT, hourly charges that are read from the database and manipulated on the server side. Often client work in environments where the internet connection is poor or not available. In this case I would like the client to be able to work offline: enter new names

How to build and release a Maven project from an offline machine (with a file directory as lib-repository)

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 03:26:44
I need to build and release projects using Jenkins, on a server with no access to maven central, and even, with no access to Nexus. Given that I have access to maven-central on dev machines, to fill the maven local_repository, I could do mvn dependency:resolve-plugins dependency:go-offline to then copy the local_repository on the linux server. Then, to get ride of a Non-resolvable parent POM error, as described here , I filled the specific profiles for both windows (dev) and linux (jenkins) with faked central profile to override the maven-central reference made by my parent pom: <profiles>

how to make an Angular.js app offline with server sync when available

▼魔方 西西 提交于 2019-12-03 02:18:34
问题 I'm looking for an approach or a library that handles this. the idea is to store data in localstorage and sync to the backend when a connection is available, http://pouchdb.com/ looks like a cool solution but anyone has use it on production? UPDATE: Right now you can also use: MeteorJS + Angular Firebase Parse Horizon 回答1: Haven't used it yet, but familiar w/ the concepts behind BreezeJS from their other offerings in .NET. Check it out http://www.breezejs.com/ and here's Ward Bell presenting

Best Practice for synchronizing common distributed data

爷,独闯天下 提交于 2019-12-03 02:00:48
I have a internet application that supports offline mode where users might create data that will be synchronized with the server when the user comes back online. So because of this I'm using UUID's for identity in my database so the disconnected clients can generate new objects without fear of using an ID used by another client, etc. However, while this works great for objects that are owned by this user there are objects that are shared by multiple users. For example, tags used by a user might be global, and there's no possible way the remote database could hold all possible tags in the

Force applicationCache to reload cached files

旧城冷巷雨未停 提交于 2019-12-03 01:44:36
I'm using the HTML5 applicationCache to store many Javascript, CSS, image, etc. files for a page. If I update one of those files, the browser never reloads it. I have tried the following: Calling applicationCache.update() on page load Listening for applicationCache's updateready event, and calling swapCache() and window.location.reload() Adding a timestamp comment to the manifest file itself to force the browser to realize the manifest has changed Surely this can't be this hard. How do I convince the browser to re-request some cached file? Peter Lubbers To force any new (or changed) file to be