offlineapps

Best practice for on/off line data synchronization using AngularJS and Symfony 2

谁都会走 提交于 2019-12-03 03:54:22
问题 I'm building a relatively complex and data heavy web application in AngularJS. I'm planning to use php as a RESTful backend (with symfony2 and FOSRESTbundle). I have spent weeks looking around for different solutions to on/off line synchronization solutions and there seem to be many half solutions (see list below for some examples). But non of them seem to fit my situation perfectly. How do I go about deciding which strategy will suite me? What issues that might determine “best practices” for

Is it possible to use two different database for offline web application

一笑奈何 提交于 2019-12-02 16:33:08
问题 I have a web application which currently uses postgres database. But I would like to make my application work in offline too. I found that CouchDB/PouchDB supports offline for web applications. But it says I have to use CouchDB in my existing backend instead of postgres. I would like to know is it possible to implement CouchDB in web app without changing the existing postgres database? Do I need to change the postgres database to couchDB to implement this feature? 回答1: It is possible to do

Is it possible to use two different database for offline web application

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 08:24:55
I have a web application which currently uses postgres database. But I would like to make my application work in offline too. I found that CouchDB/PouchDB supports offline for web applications. But it says I have to use CouchDB in my existing backend instead of postgres. I would like to know is it possible to implement CouchDB in web app without changing the existing postgres database? Do I need to change the postgres database to couchDB to implement this feature? It is possible to do this - at least in theory. And I have certainly not done any work in this area yet so I cannot advise you on

Change the default data-theme from jQuery Mobile

余生长醉 提交于 2019-11-30 20:25:33
With jQuery Mobile I can create a page using a custom theme <div data-role="page" data-theme="s" id="home">... Now this works, but requires that I add this line in each of my pages and every-time I add a new page. I tried adding data-theme="s" to the body tag but this has no affect. Is there any way to do this other then setting it manually per page? You would have to do it programmatically, AFAIK. Something along the lines of: $(document).bind( "mobileinit", function () { ... $.mobile.page.prototype.options.contentTheme = "z"; //your theme ... }); Now, since there is no centralized hook - you

Change the default data-theme from jQuery Mobile

微笑、不失礼 提交于 2019-11-30 04:58:22
问题 With jQuery Mobile I can create a page using a custom theme <div data-role="page" data-theme="s" id="home">... Now this works, but requires that I add this line in each of my pages and every-time I add a new page. I tried adding data-theme="s" to the body tag but this has no affect. Is there any way to do this other then setting it manually per page? 回答1: You would have to do it programmatically, AFAIK. Something along the lines of: $(document).bind( "mobileinit", function () { ... $.mobile

Application Cache or Service Workers - which to use in 2016/Q2?

北城余情 提交于 2019-11-30 00:01:48
Quick question for discussion really, as I wanted to have input from different people. I am in the process of developing a web page app that must be available offline. Now to do this, as I understand it, you would go about using either the application caching feature or by using service workers. However, here is the conundrum I have. When researching the application cache, the MDN clearly states : Deprecated: This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web

Is localstorage the right choice for this webapp?

烈酒焚心 提交于 2019-11-29 17:26:40
I'm interested in building a small offline webapp and I'm looking for some advice. Here's the basics of what I want it to do Create reports that, initially, will just have a name and text field List, edit, and delete these notes Ideally I'd like to add more fields to the reports later Is localstorage a good option for storing this type of data locally? If so, can anybody direct me to a complete list of the commands for interacting with it in javascript? e.g. setItem, getItem, etc. Thanks. localstorage will work just fine for this, but don't think of it as a robust solution.. It's just a basic

Does Firebase allow an app to start in offline mode?

Deadly 提交于 2019-11-28 17:02:47
I'm thinking of using firebase to write a mobile app using PhoneGap and the HTML5 Application Cache. Lets suppose each user has a list of TODO items. If the app is started when the phone is offline, will it be able to load data from the previous session and sync when a connection is established? If so I'm wondering how this is implemented because I couldn't find a reference to localStorage in firebase.js. Andrew Lee The short answer is: not yet. Once an app has connected to Firebase, the client will cache data locally and be able to access data where there is an outstanding "on" callback even

Does Firebase allow an app to start in offline mode?

帅比萌擦擦* 提交于 2019-11-27 10:08:14
问题 I'm thinking of using firebase to write a mobile app using PhoneGap and the HTML5 Application Cache. Lets suppose each user has a list of TODO items. If the app is started when the phone is offline, will it be able to load data from the previous session and sync when a connection is established? If so I'm wondering how this is implemented because I couldn't find a reference to localStorage in firebase.js. 回答1: The short answer is: not yet. Once an app has connected to Firebase, the client

HTML5 Web DB Security

こ雲淡風輕ζ 提交于 2019-11-27 02:16:17
问题 I'm looking into an offline web app solution using HTML5. The functionality is everything I need BUT the data stored can be directly queried right in the browser and therefore completely unsecure! Is there anyway to encrypt/hide so that the data is secure? Thanks, D. 回答1: There are two concerns to local storage in HTML5 - One website reading offline data that another website has stored in a users browser An end user querying your websites offline data directly For 1, browsers enforce the same