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:username@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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment