aws-sdk-react-native icon indicating copy to clipboard operation
aws-sdk-react-native copied to clipboard

completionHandlerEvent / progress doesn't get called

Open damathryx opened this issue 9 years ago • 10 comments

I tried the example in TransferUtility and uploading returns success. but the progressEvent and completionHandlerEvent is not getting called.

What am I missing?

damathryx avatar Nov 10 '16 13:11 damathryx

It is not in the documentation, but for android you have to declare a service in the Manifest: http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/getting-started-store-retrieve-s3-transferutility.html

on iOS I'm still working on, but with no success as you can see here: https://github.com/awslabs/aws-sdk-react-native/issues/22

fabriciovergara avatar Nov 10 '16 17:11 fabriciovergara

@fabriciovergal thanks, I added the service but still the same.

I added some console

image

damathryx avatar Nov 11 '16 04:11 damathryx

Are you sending the image URI. You should send absolute path (like: /storage/0/DCIM100/Camera/Image.jpg) on Android and URI on iOS

fabriciovergara avatar Nov 11 '16 09:11 fabriciovergara

@fabriciovergal yes I am like in the example. image

damathryx avatar Nov 11 '16 09:11 damathryx

Check the SQLite DB file inside the app folder, it's used as upload queue used in the library tunnel service. Probably there is something blocking the upload, such proxy, permissions, etc.

fabriciovergara avatar Nov 11 '16 10:11 fabriciovergara

@fabriciovergal sorry I am not sure where to find it.

you mean its not uploading at all even with the 'success' return from var val = await AWSS3TransferUtility.upload({"requestid":value});

image

damathryx avatar Nov 11 '16 11:11 damathryx

The "success" is returned when the download/upload is successfully added in the queue.

the database can be found in the data/data//databases

fabriciovergara avatar Nov 11 '16 15:11 fabriciovergara

@fabriciovergal i cant find the data folder. where is this located exactly?

damathryx avatar Nov 20 '16 13:11 damathryx

adb shell cd /data/data/yourAppPackage/

fabriciovergara avatar Nov 20 '16 13:11 fabriciovergara

was having the same issue but after adding the service in the android manifest as suggested by @fabriciovergal it works on android.

amanthegreatone avatar Jan 10 '17 20:01 amanthegreatone