iPad stack downloading
FlexibleLearning.com
admin at FlexibleLearning.com
Fri Feb 1 03:17:16 EST 2013
Thank you Klaus:
"You are not allowed to write to the "ENGINE" folder ->
(specialfolderpath("engine")!
Instead download to (any subfolder) of -> specialfolderpath("documents")
--
Klaus Major
And thank you Chris:
"My guess is you'd be fine with a stack file full of images, so long as it
doesn't contain any executable code. As far as I know, there are no
restrictions on types of files that can be downloaded (but I may be wrong).
For Read Naturally's One Minute Reader app, our in-app purchases consist of
text, audio, and images. We simply zip it all up in an archive, then it's
unzipped to the user's device after being downloaded. So you could consider
doing it that way too. Using revZip is fairly easy, as I'm sure you know.
"As Klaus said, you can only write/save files to the app's sandbox, not to
the app bundle. So you would need to use the app's Documents folder. There
are other possibilities, but for your purpose, the Docs folder would
probably be the best. Be aware that files saved in the Docs folder are
automatically backed up to iTunes when the device is backed up, so if you
don't want to back up your downloaded files, you can use
iphoneSetDoNotBackupFile to prevent this."
--
Chris Sheffield
Original message:
> Is it allowed to download a stackfile of images for an iPad app?
>
> I'd like the User to be able to download paid-for sets of artwork for use
by
> an app. What is the appropriate way to accomplish this? I think I know
that
> Apple does not permit an app to download executable code, but a stackfile
of
> images has no code.
>
> Second question:
> Whether images are downloaded as individual files or as a stack, I assume
> they/it can be placed in any privately named subfolder within the app
> bundle, yes?
>
> Trying to establish the ground rules before committing to too much coding
> here!
>
> Hugh Senior
> FLCo
More information about the use-livecode
mailing list