cordova-plugin-background-upload
cordova-plugin-background-upload copied to clipboard
"Sample Usage" question
I am fairly new writing Cordova apps \ Javascript. I am working on an app that allows users to upload videos to a server, and this plugin seems like a great way of doing it. However, I can't seem to get it working.
Based on the "Sample Usage" section of the Readme:
declare var FileTransferManager: any;
var config = {};
var uploader = FileTransferManager.init(config, callback);
When I put this in my javascript, after the deviceready event, it hangs on the declare. I'm not sure what I am missing here?
Hi @jomorr2,
We just merged a new version of the plugin. Can you test it ? We've included a demo folder here: https://github.com/spoonconsulting/cordova-plugin-background-upload/tree/master/demo where you can have a sample integration.
Thanks.
Luc