-
8 Mar 2012 8:58 PM #1
Unanswered: Browser compatibility check
Unanswered: Browser compatibility check
Hi,
Can any one show me a code to check whether a browser supports my sencha touch app? this is urgent.I f the browser doesnot support html5 I want to show an error message
-
9 Mar 2012 7:30 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,085
- Vote Rating
- 453
- Answers
- 3153
You can either check the useragent or use Ext.is checks
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
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 services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
9 Mar 2012 11:04 PM #3
Hi can u show me the code to check user agent in ext js4?
-
10 May 2012 2:56 AM #4
Server-side redirection? Then yes, check your UserAgent there.
Server-side redirection? Then yes, check your UserAgent there.
Currently in my app, on a page request I simply search for the word "WebKit" (case-insensitive ofc) in the UA. If its there, then redirect to the Sencha App. If not then normal web page.
Fyi, this works perfectly fine for Apple, Android, and Kindle devices (This code's in a prod environ, so you can take it for granted that it works
)..
But, mitchellsimoens (or anyone else from the Sencha team for that matter), could you guys advise us better - if this is correct or is there something better to search for!?!!
Thanks!
Kris
-
10 May 2012 8:18 AM #5Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,085
- Vote Rating
- 453
- Answers
- 3153
It really just depends what you want to target. If you want all WebKit browsers then that will be ok. If you want only certain devices then you need to get a little smarter.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
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 services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
10 May 2012 11:17 AM #6
Oh.. that's cool then
. But hope you understand that the main question here is:
What are, and how to detect all the browsers/devices that "will" support Sencha Touch Apps properly!!
... because ultimately our aim would be to display this cool Sencha App
in as many compatible devices as possible!! Hence the question "how".
Anyway, if, as you say, a simple "WebKit" string search does the job right, I'm totally cool with it!! If not, I'm all ears...
---
Btw, we are (finally) migrating our code from Sencha 1.1 to 2.0 now. [Fingers-crossed]
Are going through all the available bookmarks and docs to do so. But if there's anything else extremely helpful, do let us know.
(Hope we make it in time. Wish us luck!



Reply With Quote