-
19 Jul 2012 12:04 PM #1
Chrome in iOS (autoMaximize)
Chrome in iOS (autoMaximize)
REQUIRED INFORMATION
- sencha-touch-2.0.1.1
- Chrome 19.0.1084.60 (iOS)
The problem happens when i call the function autoMaximize within viewport in app.js file in the Chrome for iOS.
The result that was expected:
Hide Address Bar.
The result that occurs instead:
Application stopped.
Code:
Code:Ext.application({ ... viewport : { autoMaximize : true }, ... };
-
20 Jul 2012 6:22 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
Can I get a test case? This is working just fine for me:
Do note that it doesn't look like Chrome will be able to hide the address bar via this setting.Code:Ext.application({ name : 'Test', viewport : { autoMaximize : true }, launch : function() { var number = 0; new Ext.Container({ fullscreen : true, tpl : 'Still working? {num}', data : [ { num : number } ], items : [ { xtype : 'toolbar', docked : 'top', items : [ { text : 'Test', handler : function(button) { var cnt = button.up('container[fullscreen]'); ++number; cnt.setData({ num : number }); } } ] } ] }); } });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.
-
26 Jul 2012 10:24 PM #3
not working on iphone 3gs with Chrome
not working on iphone 3gs with Chrome
Hi
I can confirm the code above DOESNT work on Iphone 3gs (fw 5.0.1) with the Chrome iOS browser.
A clean app, copy and pasted from above, if I set:
it works, butCode:viewport : { autoMaximize : false },
doesnt workCode:viewport : { autoMaximize : true },
Is this a bug? or there any workarounds, like say detecting the Chrome app and not setting fullscreen or something....?
-
26 Jul 2012 11:03 PM #4
-
31 Jul 2012 2:56 PM #5
-
2 Aug 2012 8:25 AM #6
-
2 Aug 2012 11:37 PM #7
I notice as well, if I put automaximize to true the app will load in iOS safari by just going straight to url. HOWEVER, if I search google for my site, and click the link from there it looks like its going to load (fullscreen) but then never loads.
Oddly, if I set automaximize to false it all loads fine across the board
-
12 Aug 2012 12:13 PM #8
-
9 Nov 2012 5:36 AM #9
me too
iOS 6.0.1
Google Chrome v21.0.1180.82
Easy test case: create an app which loads an Ext.NavigationView and create app.js with the following code -
with weinre client i only see a lot of this request:PHP Code:Ext.application({
viewport : { autoMaximize: true }, launch: function() { Ext.Viewport.add({ xtype: 'main' }); } });
https://localhost:0/chromecheckurl
No error or something.
-
30 Dec 2012 9:38 AM #10
Browser detection
Browser detection
I had the same problem described in this thread. But I think with the following browser detection query it should work:
navigator.userAgent.search("Safari") !== -1 -> true for Safari browser (also true for iOS Chrome)Code:autoMaximize: (navigator.userAgent.search("Safari") !== -1 && navigator.userAgent.search("CriOS") === -1 && (!Ext.browser.is.Standalone && Ext.os.is.iOS && Ext.browser.version.isGreaterThan(3) ) ? true : false)
navigator.userAgent.search("CriOS") === -1 -> true for Safari browser but false for iOS Chrome browser (see https://developers.google.com/chrome...ocs/user-agent)
Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.


Reply With Quote