Image stored on s3 Bucket not loading on physical device - React Native - amazon-s3

I'm working on an application in React Native that requires to display images from the network. These images are stored on an S3 bucket that I own.
When I try to display the images on my simulator everything goes perfectly. However when I test my code on TestFlight (same behavior on android) no image is displayed.
Here are the tracks I have already explored :
The images I store have no extension. Is this a problem?
My guess would be that the problem is due to an error in the HTTPS certificate? I've also tested it on Amazon Cloud Front and got the same result.
Do you have any idea what could cause this error and an idea for the solution.
Thank you for your time,

Related

React native agora remote user video not showing in iOS when call answered from application not running state

I have implemented the agora in my react native application by following the library documentation and also referred to this link.
I am able to see remote user video and local video in the application when it is running in the foreground state.
The main issue I am facing is when the iOS application is not running state. When I took the call in not running state, I can view my local preview but the remote user video is not visible in the app. But the remote user can see my preview, which means the channel was established successfully.
I tried setting fixed width and height to
RtcRemoteView.SurfaceView
but no change in result.
I am not able to figure out what I am doing wrong. So please help me to find a solution here.
Thank you !!
React Native: 0.62.2
Agora: 3.5.1
I would recommend using the Agora UIKit for React Native, it will take care of a lot of the work for you. The repo you've linked to hasn't been updated in almost a year now.
The UIKits are across 6 platforms, and updated all the time.
Max
The mirror mode is by default enabled when using the front camera and disabled in the rear camera. If you want to enable the mirror mode on the local device, please update the _renderVideo as following (highlighted part)
please use mirrorMode={VideoMirrorMode.Enabled} in RtcLocalView.SurfaceView
Please let me know if this helps or not.

how to save image locally in react-native after fetching it from the server?

I have to download weather condition image from the server. The same image can be used for multiple places. So, I should not download the same image again and again from the server. Once I download an image, store it locally and re-use it next time if some other place require the same image.
This is my requirement. How to do this for both android and ios?

React Native Fetch Blob File Empty

We are having a problem with React Native Fetch Blob when a PDF is over 1mb in size. The file is being uploaded to Azure Blob Storage and works fine when the PDF is less than 1MB but as soon as the file is over 1MB the upload fails and the file in the container is empty.
We are using the module in an IOS React App but we also have a web app. When we upload the PDF via the web app everything is fine so it seems that this is something specific to the mobile app.
Further testing shows that if we upload a PNG over 1MB it works, so this issue seems to be specific to PDFs.
Any suggestions on how we can diagnose or solve this issue?

Process for capturing image, storing it locally, showing it in table view, uploading to server and downloading on other devices?

I want to know about process for managing images for an iOS app dealing with large images. I have done all the steps separately and everything works properly if performed individually. The flow is as given below:
Capture image on iPhone (Full sized images of 2-5 MB)
Store the image locally on iPhone (where should it be stored in NSUserDefaults or temp folder or coredata?)
Show image locally
Upload the image to server when internet connection is available
Download the image from server (I use SDWebImage) to show on all devices
I can do all the steps independently properly but when these are combined they cause problems in app.
The app requires to capture image and show them to table view from local storage until its uploaded on server.
Do I need to upload it to server and download it again before even showing to local table view? If not how should it be managed within app The best case should be that it gets saved in local storage and just uploaded & not downloaded again until its available locally.

Rails & Amazon S3 - how it works?

I would like to ask you for a simple beginner's question - I have my app in Rails and it's on Heroku. For storing images use the app S3 by Amazon.
For uploading images I use the Paperclip plugin.
And what I don't understand - I deploy my app from localhost to Heroku. It seems on Heroku my app works fine, I upload the image, this image is stored to S3 and in my app is fine displayed.
But now if I will upload an image on my localhost version - so the image will be uploaded to S3 bucket or will be stored on my hard drive?
Are these two sides separated or if I once set up into my model the S3 support, so that will be mean all images will uploaded to S3 (from heroku and from localhost)?
#phs is correct. The images will be stored on S3 regardless of where you run the app. This can cause you some grief if your :id is embedded in the image location (which it probably is) and your dev database has different ID's than your production/heroku database.