1. King_O_Hill's Avatar
    LOL!! Maybe so.. I know I'm in over my head to some degree.. But I'm a student of logic and in the audio/video tech world - I troubleshoot for a living. Something just doesn't add up here.. I'd just like some education about why this smoking gun didn't/doesn't affect more people. When the iOS itself has a flaw (in terms of how it affects our widget's updating) it seems the problem would be more ubiquitous.
    Because some of us have been clearing this cache for a long time.

    Check out WW3 for iOS 9/10 - Widget-Weather 3.0
    2013-06-15 07:13 AM
  2. The.Drifter's Avatar
    You don't need to be a code expert to observe your phone not having any updating issues at the present, bro. If iOS6 use of UiWebView cache is our smoking gun - why weren't/aren't all phones affected then/now? Educate us, bro.
    When I was developing the code for my BatteryStats iWidget, I found the widget worked fine on some devices and not others using the same code, I tried a lot of different methods of trying to refresh either the HTML or the JS and none seemed to work in my situation. So it appeared to be reading from some sort of cache, and that cache is not affected by resprings.

    So I had to research on which cache it was and find a method of clearing it. This is a widely discussed issue concerning IOS6 and UiWebView on the web and discussed in length on the Apple developers website as well. It is mentioned quite often that some devices are affected and others are not. Apple never really posted a reason or a solution as to why, but there are documented workarounds all over the web if you know what your looking for.

    Do some research yourself, thats what I did. I even provided you a link above. If you dont understand what they are saying then I cant explain it any better to you.

    The method Im using worked for my particular issue, and since Weather widgets use the same principle in obtaining info, it should help with Weather widgets getting their info from the jQuery calls and not from the caches.

    Really wont know for sure until this cache clearing js is applied to widgets using jQuery.
    Im sure that if it works or not, there will be plenty of feedback either way.
    Only then will we know for certain, right??

    However, I am highly optimistic that it will work since this was the only solution that worked across the board for all my testers on different devices

    -----------------------------------------------------------------

    Edit: Here is the method I'm using that worked for my upcoming BatteryStats iWidget:

    Code:
    $.ajaxSetup({
    cache: false,
    headers: {'Cache-Control': 'no-cache'}
    });
    Place this code into any Javascript file that uses jQuery requests.
    Put it at the top of the page, BEFORE your jQuery request code lines.
    Last edited by The.Drifter; 2013-06-15 at 07:41 AM.
    2013-06-15 07:21 AM
  3. NewD's Avatar

    So I had to research on which cache it was and find a method of clearing it. This is a widely discussed issue concerning IOS6 and UiWebView on the web and discussed in length on the Apple developers website as well. It is mentioned quite often that some devices are affected and others are not. Apple never really posted a reason or a solution as to why, but there are documented workarounds all over the web if you know what your looking for.

    Do some research yourself, thats what I did. I even provided you a link above. If you dont understand what they are saying then I cant explain it any better to you.
    And yet you just did! .. And I didn't have to understand even half that article. Thanks, sir!
    The method Im using worked for my particular issue, and since Weather widgets use the same principle in obtaining info, it should help with Weather widgets getting their info from the jquery calls and not from the caches.
    Gosh I sure hope this solves it going forward. Though - at present - I experience no update issues. Thanks again for the find, Marcus!
    2013-06-15 07:31 AM
  4. <Ian Nicoll/>'s Avatar

    Edit: Here is the method I'm using that worked for my upcoming BatteryStats iWidget:

    Code:
    $.ajaxSetup({
    cache: false,
    headers: {'Cache-Control': 'no-cache'}
    });
    Place this code into any Javascript file that uses jQuery requests.
    Put it at the top of the page, BEFORE your jQuery request code lines.
    Thanks for all your work on this, I know how long and tedious researching is, you can read a hundred pages before you find one that's relevant, great job finding this info M8. it's in the UniAW now.
    2013-06-15 07:46 AM
  5. Azjonnyg's Avatar
    Got that mate



    What I wanna know is how to pull this off without the lag created by blurring scrolling walls etc.
    I never had lag when the blur was initiated immediately never tied it to a tap function though.

    I am shocked a suggestion of mine was integrated to quickly and effortlessly. It really turned out beautiful (regarding the yahoo weather app-esque blur) i almost feel like i contributed :-D
    2013-06-15 07:47 AM
  6. The_Durben's Avatar
    Doubt there's much you can't fix though Durben
    lol thanks Mav but lately I'm a mess
    Just today for hours I couldn't figure out why I broke animation on the iPhone 4/4S conversion for something when on an iPhone 5 it worked perfect.
    Wasn't until I saw RKO's attempt that I noticed I did not put the iPhone 4 css animation files in the folder at all
    I had given up and posted it for Dacal. He would have laughed I'm sure
    2013-06-15 09:18 AM
  7. VOLTAGExDT's Avatar
    I did a change on the firefly images..



    UniAW6.0 for iph4 &amp; iph5-img_0345.pngUniAW6.0 for iph4 &amp; iph5-img_0346.pngnight.zip

    its hard to tell in those screens, but they look way better IMO
    2013-06-15 09:34 AM
  8. Dacal's Avatar
    Thanks for all your work on this, I know how long and tedious researching is, you can read a hundred pages before you find one that's relevant, great job finding this info M8. it's in the UniAW now.
    It is already in uniAW 6.3, in main.js :

    Code:
    $.ajaxSetup({timeout: 8000, cache: false}); // Set a time out for all ajax requests, desactivate the cache.
    It's important to keep the timeout for fallback.

    @Durben or Dacal (or anyone). I figured out how to apply the blur when screen is touched, added it to the different containers and it works, but doesn't seem like my i5 can handle all of it. If I have the slideshow going when I touch screen to bring up weather wall and blur everything behind it phone suffers some serious lag, to the point where the wall to wall transitions just look odd. How did you guys apply the blur to everything without suffering this lag? Or have you only added the blur to a static wallpaper?
    I think it's because of the pano walls... I have tried only on a static wallpaper.


    My themes : Jade HD, Silex HD, BaSalt HD,ToPaz
    All are on Cydia and/or Theme It.
    2013-06-15 10:34 AM
  9. ferlop15's Avatar
    ....
    Thanks for the advice on using iCleanerPro brother....I hardly ever pay attention to tweaks, or what-not, but this little helper I now realize, is quite essential!....I do my best to not install any tweaks that I don't feel are really necessary because I'm sometimes skeptical of their "usefulness" or "safe implementation"...I guess over time, my phone did start to accumulate alot of "junk" in the caches, and didn't notice that it was slowly affecting my full animations....Happy to report that after running it, my phone seems to finally be taking a load off, and seems happier

    Thanks again for the recommendation, pal!
    2013-06-15 10:50 AM
  10. <Ian Nicoll/>'s Avatar
    It is already in uniAW 6.3, in main.js :

    Code:
    $.ajaxSetup({timeout: 8000, cache: false}); // Set a time out for all ajax requests, desactivate the cache.
    It's important to keep the timeout for fallback.
    I knew this, I was just testing you David LOL...

    I only look at this code for about 10,000hrs so it's no wonder I missed it LOL.. My mind is on other things at the moment.
    2013-06-15 11:18 AM
  11. ferlop15's Avatar
    I did a change on the firefly images..

    its hard to tell in those screens, but they look way better IMO
    Yes, agree...The fireflies looked good the first time around, but they look way better, now!! Thanks, VOLTAGExDT....Guys, if you haven't already, give these a try...It's like a whole new animation addition to UniAW...and the beauty is its simplicity, just switch out the images into "dandelion/night" folder.

    2013-06-15 11:32 AM
  12. Maverick1925's Avatar
    Simon, Can you share this please? TIA
    2013-06-15 12:13 PM
  13. deepvivi's Avatar
    Great idea, thx

    Durben's widget with blur effect :



    I love it . Very nice work D.

    Dacal
    can share this ? Thank
    2013-06-15 12:54 PM
  14. scooterfips's Avatar
    Durbens widget----Looks very,very Nice This lockscreen -please Share this-thanks
    Is it for Iphone 4s?
    Last edited by scooterfips; 2013-06-15 at 02:02 PM.
    2013-06-15 01:56 PM
  15. Dacal's Avatar
    can share this ? Thank
    It's a WIP with a new tweak for catching the weather informations. Not ready to be released now... But i hope soon !


    My themes : Jade HD, Silex HD, BaSalt HD,ToPaz
    All are on Cydia and/or Theme It.
    2013-06-15 02:23 PM
  16. Simon's Avatar
    It is already in uniAW 6.3, in main.js :

    Code:
    $.ajaxSetup({timeout: 8000, cache: false}); // Set a time out for all ajax requests, desactivate the cache.
    It's important to keep the timeout for fallback.



    I think it's because of the pano walls... I have tried only on a static wallpaper.
    Yup, I think so too. It works fine on a static wallpaper for me too. Even with the animations being blurred. As soon as I choose one of the scrolling pano wall options though things get bogged down quite badly.

    I never had lag when the blur was initiated immediately never tied it to a tap function though.

    I am shocked a suggestion of mine was integrated to quickly and effortlessly. It really turned out beautiful (regarding the yahoo weather app-esque blur) i almost feel like i contributed :-D
    Have you tried the blur on a scrolling wallpaper yet?
    2013-06-15 03:43 PM
  17. NewD's Avatar
    Thanks for the advice on using iCleanerPro brother....I hardly ever pay attention to tweaks, or what-not, but this little helper I now realize, is quite essential!....I do my best to not install any tweaks that I don't feel are really necessary because I'm sometimes skeptical of their "usefulness" or "safe implementation"...I guess over time, my phone did start to accumulate alot of "junk" in the caches, and didn't notice that it was slowly affecting my full animations....Happy to report that after running it, my phone seems to finally be taking a load off, and seems happier

    Thanks again for the recommendation, pal!
    Happy to be of help, bro! I just knew when you said "animation lag" on an iPhone 5, there was something wrong somewhere. iCleanerPro is a badassed little tool that I think Krima and King turned me on to.

    Glad you're running lean again! Maybe you'll be inspired creatively to run with more animations on again!

    It is already in uniAW 6.3, in main.js :

    Code:
    $.ajaxSetup({timeout: 8000, cache: false}); // Set a time out for all ajax requests, deactivate the cache.
    Yes! And I've noticed that UniAW is always the first to auto update after a location change. Other widgets, probably without this cache ignore code, are slower to update. But, Dacal, didn't Drifter say it was important to have the $.ajax line before all jQuery code? So wouldn't it also have to appear in the location.js file too?
    Last edited by NewD; 2013-06-15 at 04:35 PM.
    2013-06-15 04:07 PM
  18. shamjosh's Avatar
    Hi All

    can anyone help please I have the UNIAW running on my iPhone5 even though i have not selected it in Winterboard or iWidgets and neither via perpage HTML+
    driving me crazy as it starts up everytime I unlock my phone
    I have rebooted\cleared caches and selected no themes to run still runnuing with the sun and all weather animations!
    2013-06-15 04:42 PM
  19. <Ian Nicoll/>'s Avatar
    Hi All

    can anyone help please I have the UNIAW running on my iPhone5 even though i have not selected it in Winterboard or iWidgets and neither via perpage HTML+
    driving me crazy as it starts up everytime I unlock my phone
    I have rebooted\cleared caches and selected no themes to run still runnuing with the sun and all weather animations!
    Hi, It must be somewhere LOL.., please tell us is it on all pages of SB, is it on LS, is it on spot light page or is it on just one page of SB.
    2013-06-15 04:54 PM
  20. shamjosh's Avatar
    Hi Ian
    it is on all SB pages I love the theme but not running on all of the SB pages
    2013-06-15 04:57 PM
LINK TO POST COPIED TO CLIPBOARD