cordova-plugin-background-upload icon indicating copy to clipboard operation
cordova-plugin-background-upload copied to clipboard

"Sample Usage" question

Open jomorr2 opened this issue 4 years ago • 1 comments

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?

jomorr2 avatar Mar 30 '21 15:03 jomorr2

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

ombr avatar Apr 01 '21 17:04 ombr