Page 1 of 1

Images work during testing, do not download after publishing

Posted: Wed Mar 26, 2014 6:24 pm
by mikede0495 .

[Beginner] I'm downloading to an image object using a URL stored as a string in a collection.

Typical string is: http://appery.io/app/view/67eee60e-29...

Works well when I run the app using the Appery.io Test app on my iPhone 5. However, when I run the app on the same phone after publishing using the published link, the image does not display. (Looks like it tried to download, but all that appears is a white picture.)

Tried on an Android phone too, and same problem.

Any ideas what I'm doing wrong?


Images work during testing, do not download after publishing

Posted: Wed Mar 26, 2014 7:45 pm
by Nikita

Hello,

Please clarify what you mean by "using the published link"? Doesn't work natively, but it works in Appery Tester. Is it right?


Images work during testing, do not download after publishing

Posted: Wed Mar 26, 2014 10:24 pm
by mikede0495 .

Works with Appery Tester.

Does not work as a mobile web app using Appery.io hosting.

I haven't tried exporting as a native app for the iPhone or Android yet.


Images work during testing, do not download after publishing

Posted: Thu Mar 27, 2014 12:52 am
by Igor

Images work during testing, do not download after publishing

Posted: Thu Mar 27, 2014 1:33 am
by mikede0495 .

I store the image URL strings in a collection:

Image

I then select the collection record I want with a where command and some simple JS in the service request:

Image

And then I map the URL string response to the asset of the image object in the service response:

Image


Images work during testing, do not download after publishing

Posted: Thu Mar 27, 2014 4:02 pm
by Nikita

Hello,

Why don't you use the files collection to get a path to the files, instead of create a new collection?


Images work during testing, do not download after publishing

Posted: Thu Mar 27, 2014 9:26 pm
by mikede0495 .

I'll try that. Thanks Nikita.