e-mission / cordova-server-sync Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
39976,1456440668.991,ERROR,"ServerSyncAdapter : Error org.json.JSONException: Value app launched of type java.lang.String cannot be converted to JSONObject while saving converting trips to JSON, skipping all of them"
The onPostExecute()
of the current AsyncTask implementation does not override the superclass' hence the cachedCallbackContext.success()
is never called
// cordova-server-sync/src/android/ServerSyncPlugin.java : line 70
AsyncTask<Context, Void, Void> task = new AsyncTask<Context, Void, Void>() {
...
protected void onPostExecute(Long result) {
cachedCallbackContext.success();
}
};
The solution was to pass Void
as an argument instead of Long
. I forked this repo and made the necessary changes however I was not able to add the forked version to my cordova project (e-mission-phone);
Error while adding the forked version.
$ cordova plugin add https://github.com/ericafenyo/cordova-server-sync.git
Failed to fetch plugin https://github.com/ericafenyo/cordova-server-sync.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Failed to get absolute path to installed module
Error when added to the config.xml
<plugin name="edu.berkeley.eecs.emission.cordova.serversync" spec="https://github.com/ericafenyo/cordova-server-sync.git" />
$ cordova prepare
...
Discovered plugin "edu.berkeley.eecs.emission.cordova.serversync" in config.xml. Adding it to the project
Failed to restore plugin "edu.berkeley.eecs.emission.cordova.serversync" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin https://github.com/ericafenyo/cordova-server-sync.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Failed to get absolute path to installed module
The current sync architecture interface is not clean.
data-collection
plugin.Need to do a good design and rework this properly.
If that is turned on, then the sync can only be launched manually
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.