Comments (6)
from postcardapp.
That is cool! Although I was more excited when I thought you had already implemented it. Took me a second to realize it was a mock. :)
from postcardapp.
Cordova returns base64 encoded imageData which we can store as a PouchDB attachment - http://pouchdb.com/guides/attachments.html or as a Blob.
Does anyone have a preference?
from postcardapp.
There is no Cordova API that will return a buffer? I suppose that makes sense as the Cordova bridge requires everything to be a string. Sigh.. oh well. From a "helping Thali" perspective it would be best if we stored it as an attachment. This would force us to finally exercise those APIs.
from postcardapp.
I have small images being saved as an attachment in PouchDB using base64. But having trouble with saving large images on PouchDB 413 (Request Entity Too Large)
- UPDATE: fix
app.use( bodyParser.urlencoded({ extended: true, limit: '10mb' }) );
from postcardapp.
iframe issues: So I want to call Cordova commands from web app client on the mobile but I reckon I need to do some additional wiring to get working it with JXCore / Express app running inside an iframe...
Tried to get 'parent' of iframe to get access to Cordova functions but this failed due to different origins 'file://' and 'localhost://'.
OPTIONS :
- Cross Domain Messaging - post message event using
parent.postMessage('data','*');
to trigger Cordova function in main window - "index.js" then post message back to iframe to trigger callback. https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage - Or do we really need to run everything inside an iframe? Potentially we can drop ejs requirement.
- UPDATE: tried removing iframe but ran into various problems - mostly broken file links so going with option 1 which works
from postcardapp.
Related Issues (20)
- Make change username a modal HOT 2
- Enable autofocus input
- Revert to stable Cordova plugins HOT 4
- URL safe device identity uses dash delimiter HOT 1
- Me record for peer exchange
- Live development reload
- Get Postcard app working without iframe HOT 9
- Build on Android only showing Postcard Logo HOT 11
- Story_001_dadougla build failed HOT 4
- Scanning for nearby devices doesn't seem to work. HOT 1
- Update gulp hook script to bundle Cordova plugins with jxcore express app
- Check postcard app with Cordova 6 HOT 5
- Appium capabilities config HOT 1
- Add sync tests to E2E appium tests HOT 3
- Cordova working with localhost HOT 1
- Fix Appium tests with iOS HOT 7
- WKWebView update for iOS HOT 4
- Disable syncing card changes before login
- Architecture of Thali based applications HOT 3
- Fix packages
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 postcardapp.