Hi all, I need to make my GWT app work with Googlebot. It seems that it tries to load the app, but fails because its user agent is unrecognized. I would like to give it the 'safari' version of the app.
Is it possible to set a default user.agent, which is used if the user agent is unrecognized? I tried to set a fallback property in the same way that is used for the Locale, but that didn't work. I also tried to create my own provider for user.agent, but it was never called: I got an error that the user.agent property isn't set. So my current solution is to recompile gwt-user.jar with a one-line change: in UserAgentPropertyGenerator.java, I changed the default return value from 'unknown' to 'safari'. But I'm hoping there's a way to do this that doesn't involve recompiling GWT. Thanks, Oren -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/3vzITUjbHYwJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.