mikede0495 .
Posts: 0
Joined: Wed Mar 26, 2014 6:14 pm

Images work during testing, do not download after publishing

[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?

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

Images work during testing, do not download after publishing

Hello,

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

mikede0495 .
Posts: 0
Joined: Wed Mar 26, 2014 6:14 pm

Images work during testing, do not download after publishing

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.

mikede0495 .
Posts: 0
Joined: Wed Mar 26, 2014 6:14 pm

Images work during testing, do not download after publishing

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

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

Images work during testing, do not download after publishing

Hello,

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

mikede0495 .
Posts: 0
Joined: Wed Mar 26, 2014 6:14 pm

Images work during testing, do not download after publishing

I'll try that. Thanks Nikita.

Return to “Issues”