1

I want to redirect users to another page if they are loading my web app from a standard desktop browser. I've tried detection scripts using php and javascript in the index file which both work fine in the dev environment. The problem is when I use the 'sencha app build production' command to build the project I get errors. I'm assuming this is because the build script is somehow being redirected by these scripts when trying to build dependencies. I'm not sure how to fix this. I tried building it without the scripts then uploading the production build and adding the code to the uploaded files but the code added to the uploaded files seems to be ignored.

Titouan de Bailleul
  • 12,920
  • 11
  • 66
  • 121
LoneWolfPR
  • 3,978
  • 12
  • 48
  • 84

1 Answers1

0

Either the builder is getting redirected or the builder cannot follow the code dependencies to build a single JS file.

You can create a device profile for desktop which will redirect in the launch function when the profile is active: Sencha Touch 2 device profiles

Martin de Keijzer
  • 382
  • 1
  • 3
  • 19