PDA

View Full Version : GXT not working on iPad/iPhone?!?



rcbeuker
12 Oct 2011, 11:25 AM
Our test application (gxt 2.2.5) isn't running on iPad or iPhone :(( I found several posts around this subject, but no concrete information...

http://www.sencha.com/forum/archive/index.php/t-109610.html
(http://www.sencha.com/forum/archive/index.php/t-109610.html)http://www.sencha.com/forum/archive/index.php/t-109867.html
http://www.sencha.com/forum/showthread.php?51757-gxt-ext-on-Iphone
http://www.sencha.com/forum/showthread.php?53036-When-If-will-the-iPhone-be-supported
(http://www.sencha.com/forum/showthread.php?53036-When-If-will-the-iPhone-be-supported)
Where can I find information/documentation about this? Which part are working, and which aren't? Is this fixed in GXT 3.X?

This will definitely stop us from using GXT (as lots of our customers are using iPad/IPhone ...)


(http://www.sencha.com/forum/archive/index.php/t-109867.html)

sven
12 Oct 2011, 11:36 AM
GXT is for the desktop, like Ext JS. There will probably something for mobile devices, like Sencha Touch, in the future.

rcbeuker
13 Oct 2011, 1:14 AM
"... in the future."

But I have to answer the questions from customers today ;) Some GWT/GXT developers mention the Java API to Sencha Touch; Gwt4Touch (http://www.gwt4air.appspot.com/) Does Sencha recommend this product? What will be the timeframe for "GXT-Touch" from Sencha? :>

Regards,

Roland Beuker

rcbeuker
16 Oct 2011, 11:04 AM
We have created a trial project with GXT and gwt4touch. ~o)



public void launch()
{
String lPlatform = Window.Navigator.getPlatform();

if (lPlatform.contains("mobile"))
{
// use gwt4touch
}
else
{
// use GXT
}
}


This works, but I was wondering if there is an official (GWT/GXT/Google) framework for the mobile/desktop determination... Or is this a server servlet job?

Ekambos
16 Oct 2011, 2:14 PM
Actually Sencha Touch does provide some convenient method to detect the current running environement.
We ll add all of them in the next release(coming out soon). You ll be able to do something like


if(Ext.isDesktop()){
//use GXT
}else {
//use Gwt4Touch
}