The title says it all, I would like to implement a 30-day testmdous for my Brics. Has anyone of you developers already implemented something like this or at least the direction in which I can go?
No, this will not work. You don’t have access to anything which you would be able to control this.
Ok, thanks, I thought I’d ask, maybe someone has already tried something.
Something really 100% reliable is not possible because javascript is involved. But with the Blocs App Developer Sandbox I can do the following:
from “custom-bric.js” the init function is called every time a Brics is placed on the canvas. This initializes the Bric and an Ajax call to any server (with JSONP as response) goes through everywhere despite CORS and with the callback function from the response I would have a response from the server. and if necessary the Bric is no longer initialized, at least a “primitive” demo mode would work that way.
But I’m probably the first to try this
I can only strongly advise against implementing a “calling home” function.
I would rather see @Norm implementing an API for such demo cases.
that would be the best solution