Hi,

I'm wondering how I would be able to download and store an add-on package for 
an app. As an example let's assume I would want to make a wordlist app and I 
want to download an extra wordlist.

It seems like I can use the WebPayments API and handle the download of the 
add-on through the server-side component needed to handle the payment. What I 
don't understand is how I can store the add-on on my device. When my app is 
privileged I can still not store the add-on in my app folder, only on the SD 
card.

How would I now prevent my users from copying the data between SD cards? I 
could probably do a request to my server component containing the data in 
navigator.id to verify that the current user has bought the add-on. This would 
however make it impossible to use the add-on content in the app offline, since 
I cannot verify if the content was bought.

Am I missing something, or is this how it works?

Thanks in advance,

Casper
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to