18 Jun 2012 8:59 AM #1
Unanswered: Sencha Cordova conflict with ?deviceType=...
Applications setup to include cordova.js will not load if you add the 'deviceType' parameter to the url.
Anyone else seeing this or have a workaround that doesn't include changing app.json every time I want to test on my desktop?
20 Jun 2012 5:39 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
I tend to favor profiles and change those for my tests than to use deviceType parameter.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
20 Jun 2012 6:07 AM #3
The only thing I don't like about that is that I am forgetful and will forget from time to time to change the isActive() method back to actually check for the device type.
The deviceType param is checked to allow for easier testing and it would be nice if it would play nice with cordova.
Also, in the realm of a feature request, it would be really nice if instead of just checking for deviceType=Phone/Table it would just check for a profile matching whatever you pass in. That way I could just pass deviceType=AndroidTablet and not have to change the code in any of those profile classes.
Thanks for the reply Mitchell,