I was relying on mayStop to save my user's project when they leave the activity but it seems to work in some cases only, ie when navigating from one activity to another but not when leaving the application or closing the browser... I don't know if it is normal? may be there is "not enough time" to send the last message with all the project's data?
If it is then I need a whole new strategy to make sure data is saved when the user leaves. I would be interested in knowing of any suggestion to solve the issue.
I have planned to save on every change made, but it is quite heavy as there are many frequent updates possible (just moving the map would trigger a save). An optimisation to this would be a combination of a flag for tracking changes and a timer to make periodic saves, eg every minute or so, when the project has changed.
Anyway if anyone has recommendations on how to do this I would be very happy hearing them.
Thanks,
Thomas
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/-/7-k9iYAn128J.
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