Thread: Mobile Safari
View Single Post
Old 12-19-2010, 05:48 AM   PM User | #1
Jon W
Regular Coder

 
Join Date: Jan 2008
Posts: 334
Thanks: 9
Thanked 0 Times in 0 Posts
Jon W is an unknown quantity at this point
Mobile Safari

Is there a way to detect when a iPhone goes to sleep and when the mobile safari browser has been minimized?

Reason why I ask is that I made a javascript countdown timer for a project that I'm working on and when you minimized or when the iPhone goes to sleep the Javascript stops in the browser. Meaning when the user comes back to the page the countdown timer is way off. What are some ways that I can fix this?
Jon W is offline   Reply With Quote