Images from S3, and other outside domain files, are not appearing on apk

Hi,
I have an app with images, saved on S3. On the browser they all appear as expected, but opening the app from the apk, i don’t see the images.
any settings/ permissions I am missing?
Thanks.

1 Like

App.accessRule('https://*.amazonaws.com');

in your mobile-config, check the docs on that.

You can limit it also to subdomains so you don’t accept files from the wholes AWS environment.

Hi, thanks, I tried with both http and https, but still nothing appears.
Even the api call to save the image at s3 is not executed, (it fails before getting any callback).

First test with a simple image you manually upload to S3.

Also rebuild your project since this change gets into the native code, so just an hot update is not enough.

You can find the source by checking the logs of the device you are running on. In iOS that’s in the xCode console or with Safari. With Android you can connect to your device with USB cable and then use Chrome to inspect.

The issue described in general shows errors in the console.

Alright thanks, I’ll try to rebuild.

New build didn’t make a change.
I’m debugging with ddms and these are the errors:
(the event wat taking a picture).
08-10 18:34:21.361: E/agps(142): [agps] ERR: [SESSION] session_send_pmtk no session found
08-10 18:34:21.361: E/mnl_linux(17963): mtk_gps_sys_gps_mnl_callback: Get SV info success
08-10 18:34:22.362: E/mnl_linux(17963): mtk_gps_sys_gps_mnl_callback: Get SV info success
08-10 18:34:23.362: E/mnl_linux(17963): mtk_gps_sys_gps_mnl_callback: Get SV info success
08-10 18:34:23.855: E/CellLocation(900): create GsmCellLocation
08-10 18:34:23.902: E/CellLocation(900): create GsmCellLocation
08-10 18:34:24.361: E/mnl_linux(17963): mtk_gps_sys_gps_mnl_callback: Get SV info success
08-10 18:34:25.362: E/mnl_linux(17963): mtk_gps_sys_gps_mnl_callback: Get SV info success
08-10 18:34:26.362: E/mnl_linux(17963): mtk_gps_sys_gps_mnl_callback: Get SV info success
08-10 18:34:27.362: E/mnl_linux(17963): mtk_gps_sys_gps_mnl_callback: Get SV info success
08-10 18:34:28.362: E/mnl_linux(17963): mtk_gps_sys_gps_mnl_callback: Get SV info success
08-10 18:34:28.868: E/CellLocation(900): create GsmCellLocation
08-10 18:34:28.902: E/CellLocation(900): create GsmCellLocation
08-10 18:34:29.361: E/mnl_linux(17963): mtk_gps_sys_gps_mnl_callback: Get SV info success
08-10 18:34:30.362: E/mnl_linux(17963): mtk_gps_sys_gps_mnl_callback: Get SV info success
08-10 18:34:31.362: E/mnl_linux(17963): mtk_gps_sys_gps_mnl_callback: Get SV info success
08-10 18:34:32.362: E/mnl_linux(17963): mtk_gps_sys_gps_mnl_callback: Get SV info success
08-10 18:34:33.363: E/mnl_linux(17963): mtk_gps_sys_gps_mnl_callback: Get SV info success
08-10 18:34:33.898: E/Sensors(661): new acc setDelay handle(0),ns(20000000) err! go to hwmsen
08-10 18:34:33.916: E/CellLocation(900): create GsmCellLocation
08-10 18:34:33.952: E/CellLocation(900): create GsmCellLocation
08-10 18:34:34.362: E/mnl_linux(17963): mtk_gps_sys_gps_mnl_callback: Get SV info success
08-10 18:34:35.362: E/mnl_linux(17963): mtk_gps_sys_gps_mnl_callback: Get SV info success
08-10 18:34:36.364: E/mnl_linux(17963): mtk_gps_sys_gps_mnl_callback: Get SV info success
08-10 18:34:37.282: E/Sensors(661): new acc setDelay handle(0),ns(20000000) err! go to hwmsen
08-10 18:34:37.361: E/mnl_linux(17963): mtk_gps_sys_gps_mnl_callback: Get SV info success
08-10 18:34:38.364: E/mnl_linux(17963): mtk_gps_sys_gps_mnl_callback: Get SV info success
08-10 18:34:38.972: E/Sensors(661): new acc setDelay handle(0),ns(20000000) err! go to hwmsen
08-10 18:34:38.999: E/CellLocation(900): create GsmCellLocation
08-10 18:34:39.043: E/CellLocation(900): create GsmCellLocation
08-10 18:34:39.363: E/mnl_linux(17963): mtk_gps_sys_gps_mnl_callback: Get SV info success
08-10 18:34:40.362: E/mnl_linux(17963): mtk_gps_sys_gps_mnl_callback: Get SV info success
08-10 18:34:41.362: E/mnl_linux(17963): mtk_gps_sys_gps_mnl_callback: Get SV info success
08-10 18:34:42.362: E/mnl_linux(17963): mtk_gps_sys_gps_mnl_callback: Get SV info success
08-10 18:34:42.380: E/Sensors(661): new acc setDelay handle(0),ns(20000000) err! go to hwmsen

Does the static image from s3 show up? Did you test that?

Uploading is a totally different case, to debug that more info the the code / packages used is needed.

yes, i have many images which were already uploaded, and i can see them all from the browser.

Ok and can you see those images now also on your Android device?

No from the apk. om the device browser i do see them.