Hello Eddy Verbruggen, thanks for this great plugin.
I am building my app and since I come from the javascript world, I prefer to use the webApi version of your plugin. However, when trying to upload a file to Storage, I couldn't find a way to use the OnProgres function that is defined in the NativeApi.
For now, what I did was modify the file where the put method is defined and added a reference to an onProgress function.
Then I used this way:
`let file = file
let metadata = {
contentType: image/jpeg
}
function onProgress(progress){
// Change UI with progress
}
avatarRef.put(file, metadata, onProgress)`
Do you see any problem in using the plugin in this way?
Hello Eddy Verbruggen, thanks for this great plugin.
I am building my app and since I come from the javascript world, I prefer to use the webApi version of your plugin. However, when trying to upload a file to Storage, I couldn't find a way to use the OnProgres function that is defined in the NativeApi.
For now, what I did was modify the file where the put method is defined and added a reference to an onProgress function.
Then I used this way: `let file = file let metadata = { contentType: image/jpeg } function onProgress(progress){ // Change UI with progress }
avatarRef.put(file, metadata, onProgress)`
Do you see any problem in using the plugin in this way?