I recently created a mobile application using gwt with the MVP pattern along
with a valueChangeHandler that invokes the onValueChange method when the
History Token changes.  There are 3 ways that my application updates the
history token.

1) Defining the token within the html like in the following example: <a
href="#newToken">link</a>

2) Creating a clickHandler that generates an new token:

addClickHandler(new ClickHandler() {

@Override
public void onClick(ClickEvent event) {
History.newItem("newToken");
}
 });

3) Creating a clickHandler that directs to the previous token

addClickHandler(new ClickHandler() {

@Override
public void onClick(ClickEvent event) {
History.back();
}
 });

The problem I am having is that when a user clicks a link within mobile
safari which opens the iphone mail client (ie, <a href="mailto:
usern...@gmail.com"></a>), then returns to the application by either sending
the email or clicking cancel, then the back button within my application
(ie, History.back() ) no longer invokes the onValueChange method.
 Interestingly, the history token appended to the end of the url does update
when the 'back' button is clicked, and both options 1 and 2 above still
invoke the onValueChangeMethod.  Has anyone dealt with a similar issue or
could someone explain why Safari Mobile seemingly ignores the History state
after returning from the mail client?

Thanks

Daniel

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@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.

Reply via email to