08-15-2012 09:35 AM
I have application that lets users listen to free songs. I want to add a feature that allows users to buy additional songs.
I was looking at this page ... http://docs.blackberry.com/en/developers/deliverab
Which says "You can distribute digital goods either by sending data files over the wireless network from your own server, or by unlocking existing functionality from within the application's code. "
I don't want to use the option of packaging the download packs within the original application because song packs of 10-20 songs will add a lot to the size of the application.
Can anyone link to to any useful instructions on how I could have the mp3 packages downloaded to my app and be able to be used when the user is offline?
08-15-2012 09:37 AM
One idea I have to dynamically write a HTML5 App Cache based on which download packs the user has purchased.
So the free songs would be included in the app itself and the downloaded songs would be linked to from my server but also included in the HTML5 Cache so they could be used offline. I'm not sure that would be the best solution though.
Let me know what you think.
08-17-2012 01:22 AM
Hi. Why you want to use HTML5 cache? You could also download the purchased files to the app folder and store directly in there using the fileTransfer API, isn't it?
08-17-2012 10:13 AM
08-17-2012 10:24 AM
Do not know which of the BB OSs your app is for, but I here are the starting points for all of them when using remote file transfers:
On a customer project I used the FileDownload API for PB OS and also tried the BB10 OS APIs days ago and to it is working. I think there could be some improvements, like the progress for download, but to only download it is working so far.