Calling javascript function on unlock.

Discussion in 'iOS Themes and Customization' started by Randomname126, Jul 12, 2009.

  1. Randomname126

    Randomname126 New Member

    Apr 28, 2009
    Likes Received:
    iPhone 4S (Black)
    Hello, I am currently using the Weather Widget that I think Maniac Nimrod posted about in one thread. Currently I have been depending on Insomnia to keep Wifi on while it was in sleep so it would update.
    Problem is it uses some battery life which I don't like. I was wondering if it is possible to make the weather refresh after the predetermined time if the iPod is on, or if it is in sleep when that time occurs to refresh when I wake it from sleep.
    Is this possible and if it is how would I go about doing this?
    ------------------double post merged------------------
    An idea that just popped into my head is; what if I make a dylib to hook into mobile substrate and then on unlock a delegate would be called checking an internal timer which could maybe call a refresh function in javascript? Anyone want to tell if that is possible or not, or if it would lag, or use battery life?

Share This Page