Comments (2)
Yes, there is one extra requirement to get the npm build working in PhoneGap. Essentially there needs to be another <script>
tag in public/index.html
that loads before the build and defines window.WQ_CONFIG
with similar parameters as the old pginit.js. Perhaps something like this:
window.WQ_CONFIG = {
router: {
base_url: getBaseUrl()
},
store: {
service: 'https://[SERVER_DOMAIN]',
defaults: {'format': 'json'}
}
}
My plan was to release something like this as a fix to the project template in 1.2.1 (see wq/wq.create#6). However, it looks like PhoneGap Build itself will be discontinued a month from now (per https://build.phonegap.com/). Thus, I will instead be deprecating the wq phonegap
build command in 1.3 and dropping it entirely in 2.0. I could still see putting together some documentation for those that want to install Cordova locally, though it will not be the recommended option.
Going forward, the recommendation will be to do one or both of the following:
- Deploy via an installable web app. For
wq start --with-npm
projects, this should be as simple as switchingserviceWorker.unregister()
toserviceWorker.register()
in the existing npm template. For PyPI-only users I still need to come up with a service-worker replacement for thewq appcache
command (#63/#107). - Deploy to app stores via React Native or Expo and the new @wq/react+@wq/material renderer (#122).
from wq.app.
I just released wq.app 1.3 alpha, which includes a deprecation warning for the wq phonegap
command as well as improved support for service workers and integration with React Native / Expo.
from wq.app.
Related Issues (20)
- instantaneous sync can cause outbox to have incorrect state HOT 1
- prefetching spinner disappears HOT 2
- Building fresh wq.start application crashes on "Optimizing with r.js..." HOT 3
- redux integration
- How to implement dependent/chained drop down list in new/edit form HOT 3
- Installable PWA HOT 1
- "wq phonegap" command crashes on generating 9-Patch files HOT 2
- batch submission support HOT 8
- roadmap for wq.app 2.0
- support attachment models that are also top-level pages
- Home page is not updated when template changes HOT 3
- Does wq build work with #115? HOT 3
- Watching for template changes in react environment HOT 2
- can_add / can_edit / can_delete flags not applied upon authentication HOT 1
- TypeError when clicking on an unsynced item with a validation error HOT 1
- maketemplates and locate.js HOT 1
- DateTime input displays current date when unset HOT 1
- migrate to maplibre-gl
- Choose layer icon depending on submitted data HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wq.app.