mercredi 23 avril 2014

Touch App Works Well in Preview and Android Native, Fails in Web Production

I have a Sencha Touch App generated with Sencha Architect. The intention is to deploy it on Android devices but retain a demo copy that can work via a normal browser over the web.

The challenge is (without making any changes to the code) it works perfectly when (1) packaged and deployed to the Android device and (2) run under preview in Architect (i.e. when the build optimizations are not carried out. However when I run "Build Web App", or "Run Build Target", certain errors come up in the console and some events no longer work. Some included .js files (which were not complained about in scenarios [1] and [2] mentioned above now get reported as missing).


In the attached screenshot, "A" is what shows when build target is run. "B" shows in preview and also works in the Android App.


How can this problem be corrected?





Aucun commentaire:

Enregistrer un commentaire