Hi there,

We are trying to build a GWT based app which will work on both desktop and 
mobile environments. Using Gin we are able to switch out for the different 
views. This is working fine for iPhone and the Blackberry phones which 
provide 'Gecko' in their user agent string. How ever we are facing a problem 
with the BlackBerry phone which have a user agent string like: 
'BlackBerry8330m/4.5.0.131 
Profile/MIDP-2.0 Configuration/CLDC-1.1 
VendorID/104<http://user-agent-string.info/?Fuas=BlackBerry8330m%2F4.5.0.131+Profile%2FMIDP-2.0+Configuration%2FCLDC-1.1+VendorID%2F104&test=spamno&action=analyze>
'

The problem from what we have understood is in the fact that the 
'user.agent' property comes as unknown which would imply GWT does not know 
which compiled version of the app to load. So as a work around what we did 
was define a new property :
*<define-property name="mobile.user.agent" values="BlackBerry, mobile, 
desktop" />*
*
*
which has its own property provider defined (which is working fine). And 
then we try to use:
*<set-property name="user.agent" value="gecko1_8" >*
*        <when-property-is name="mobile.user.agent" value="BlackBerry" />*
*  </set-property>*

hoping to force GWT to bootstrap the Gecko version. Now the funny part is 
that when we run it in Dev mode ( on the built in Jetty) it works and the 
mobile version of the app gets loaded for the problematic BB phone. *BUT * when 
we compile to JS and then run it on our server it does not work.

Any help/suggestions/advice would be appreciated! 

What we basically need is to somehow force the 'user.agent' property to 
'gecko' if we detect a BlackBerry phone.

Regards,
Tej

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to