Page 28 of 52 FirstFirst ... 182627282930 38 ... LastLast
Results 541 to 560 of 1027

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: GroovyLock (HTML LockScreen Platform)

  1. #541
    Quote Originally Posted by GroovyCarrot View Post
    GroovyLock 1.2.1 will forward when SpringBoard receives memory warnings to your LockScreen via javascript:lowMemoryWarning(); and javascript:memoryPressureRelieved();. During this time it is recommended that you override any animations/ajax or heavy JavaScript and destroy any heavy resources in order to spare the user safe mode/respring. I have updated the above and first post. This isn't tested but should work fine and is best I can provide for the instabilities on iOS 7
    So when the lowMemoryWarning is active, we need to kill/reduce animation/ajax and we can restore animation/ajax when memoryPressureRelieved is active?

    Check out WW2 for iOS 8 - Widget-Weather 2.0

  2. #542
    Yes, Kings question is pertinent… And then my follow-up question would be how in JavaScript do you "stop these processes" and then restart them?
    Here to help if I can. If I can't I know someone who can!

  3. #543
    Jake, one request. Please keep the non - touch version (1.0.2) as a separate available option/download on first post.

    It's just so incredibly stable in that deb.

    For the people that prefer simple non-touch LockScreens. Like me


    Sent from my iPhone using Tapatalk

  4. #544
    Sorry, but the request line has been closed.

    Check out WW2 for iOS 8 - Widget-Weather 2.0

  5. #545
    Here to help if I can. If I can't I know someone who can!

  6. #546
    Evil Genius Developer GroovyCarrot's Avatar
    Join Date
    Jan 2012
    Location
    Liverpool, United Kingdom
    Posts
    560
    Thanks
    101
    Thanked 2,196 Times in 480 Posts

    Quote Originally Posted by King_O_Hill View Post
    So when the lowMemoryWarning is active, we need to kill/reduce animation/ajax and we can restore animation/ajax when memoryPressureRelieved is active?
    Yeah pretty much you're wanting to:
    Code:
    <script type="text/javascript">
        var allowAjax = true;
        
        function lowMemoryWarning() {
            // Stop all animating elements & prevent ajax requests, or anything that may push memory over to crash
            $("#animatingElement").stop();
            allowAjax = false;
        }
        
        function memoryPressureRelieved() {
            // Memory freed up so allow elements to animate again
            $("#animatingElement").animate(.....);
            allowAjax = true;
        }
    </script>
    Handling the warning will depend on what you're using to animate elements, in your ajax code - though personally I'd recommend just using WidgetWeather to save even needing to make HTTP requests - check for allowAjax.

    Edit: to elaborate if you wanted to be able to actively check whether SpringBoard is subject to memory pressure, you are able to do this via cycript:
    Code:
    <script type="text/cycript">
        <!-- Requires Cycript from Cydia -->
        function isUnderMemoryPressure() {
            return [[SpringBoard sharedApplication] underMemoryPressure];
        }
        function recurringFunctionForTimer() {
            if(isUnderMemoryPressure()) {
                // Don't do anything too memory intensive
            }
            else {
                // Fine to make ajax call or whatever
            }
        }
    </script>
    Last edited by GroovyCarrot; 07-18-2014 at 10:03 AM.

  7. The Following 7 Users Say Thank You to GroovyCarrot For This Useful Post:

    Dacal (07-18-2014), June'sIphone (07-18-2014), King_O_Hill (07-18-2014), Krima (07-18-2014), NewdestinyX (07-18-2014), RKO1195 (07-18-2014), Simon (07-18-2014)

  8. #547
    Quote Originally Posted by MamaJaay View Post
    Jake, one request. Please keep the non - touch version (1.0.2) as a separate available option/download on first post.

    It's just so incredibly stable in that deb.

    For the people that prefer simple non-touch LockScreens. Like me


    Sent from my iPhone using Tapatalk
    This was my thoughts as well, depends on how it was implemented really.

    Quote Originally Posted by GroovyCarrot View Post
    GroovyLock 1.2.1: https://www.dropbox.com/s/eso4eqvlxh...Lock-1.2.1.deb

    Changelog
    1.2.1
    Bug fixes, evaluates javascript:lowMemoryWarning(); and javascript:memoryPressureRelieved(); for developers to make use of to reduce lockscreen memory load

    1.2.0
    Added touch support, tested with Ezra cydget

    1.1.0
    Added cycript support, to utilise use: <script type="text/cycript"> and that will allow you to use objective C code in your JavaScript.
    For example: [[UIDevice currentDevice] batteryLevel] will return a float 0.0-1.0 indicating battery level as explained here in the UIDevice class documentation
    Nice.

    Another way to get battery percent would be [[SBUIController sharedInstance]displayBatteryCapacityAsPercentage] which would return a percent instead of 0.0-1.0. Though this may not match with the status bar, as the statusbar is a calculated percent, and not accurate.

    A couple others would be.
    [[SBUIController sharedInstance]isBatteryCharging] Show if charger is connected
    [[SBUIController sharedInstance]curvedBatteryCapacityAsPercentage] battery percent
    [[SBUIController sharedInstance]batteryCapacityAsPercentage] battery percent

    More are listed http://iphonedevwiki.net/index.php/Cydget if anyone is curious.

    Quote Originally Posted by GroovyCarrot View Post
    Yeah pretty much you're wanting to:
    Code:
    <script type="text/javascript">
        var allowAjax = true;
        
        function lowMemoryWarning() {
            // Stop all animating elements & prevent ajax requests, or anything that may push memory over to crash
            $("#animatingElement").stop();
            allowAjax = false;
        }
        
        function memoryPressureRelieved() {
            // Memory freed up so allow elements to animate again
            $("#animatingElement").animate(.....);
            allowAjax = true;
        }
    </script>
    Handling the warning will depend on what you're using to animate elements, in your ajax code - though personally I'd recommend just using WidgetWeather to save even needing to make HTTP requests - check for allowAjax.

    Edit: to elaborate if you wanted to be able to actively check whether SpringBoard is subject to memory pressure, you are able to do this via cycript:
    Code:
    <script type="text/cycript">
        <!-- Requires Cycript from Cydia -->
        function isUnderMemoryPressure() {
            return [[SpringBoard sharedApplication] underMemoryPressure];
        }
        function recurringFunctionForTimer() {
            if(isUnderMemoryPressure()) {
                // Don't do anything too memory intensive
            }
            else {
                // Fine to make ajax call or whatever
            }
        }
    </script>
    On underMemoryPressure is interesting. It will send a bool that can determine if the memory is low on SB, but still doesn't send it if the script has hit its max or a page has reached its resource limit. I have experienced low memory crashes without a springboard crash or safemode. May be good for passcode users, but looks like the animation hitting its max limit will still cause safemode. This (may) be depending on how long the script runs. JavaScript execution time is limited to 10 seconds for each top-level entry point. As noted in https://developer.apple.com/library/...P40006482-SW15

    Jake have you ever thought about a type of iWidgets with cycript? Would be pure epicness.
    Last edited by June'sIphone; 07-18-2014 at 04:42 PM.

  9. The Following User Says Thank You to June'sIphone For This Useful Post:

    NewdestinyX (07-18-2014)

  10. #548
    iPhone? More like MyPhone DutchMaster22's Avatar
    Join Date
    Mar 2009
    Location
    CT
    Posts
    242
    Thanks
    59
    Thanked 43 Times in 41 Posts

    Quote Originally Posted by DutchMaster22 View Post
    Yea King, that's exactly where I got the idea! I made my own preview image for emitter and resized the one for badgen7 so they're all uniform. Would love to do the same for groovy lock themes. Attachment 659606
    Hey June, any chance of this in next update??

  11. #549
    Quote Originally Posted by DutchMaster22 View Post
    Hey June, any chance of this in next update??
    Should be asked in the LB thread, but I will answer.

    I personally do not like the table style. I really prefer how it is now.

    ImageUploadedByModMyi1405723975.142099.jpg

    If others would want it to display like that I could change it. Ask in LB and we will see.
    Last edited by June'sIphone; 07-18-2014 at 05:58 PM.

  12. #550
    iPhone? More like MyPhone DutchMaster22's Avatar
    Join Date
    Mar 2009
    Location
    CT
    Posts
    242
    Thanks
    59
    Thanked 43 Times in 41 Posts

    Yea the new update for lbevo is awesome and I like how the themes are displayed. I meant for groovylock, if the themes could have an image preview like for NextGenUI

  13. #551
    Quote Originally Posted by DutchMaster22 View Post
    Yea the new update for lbevo is awesome and I like how the themes are displayed. I meant for groovylock, if the themes could have an image preview like for NextGenUI
    No I don't plan on putting a visual display for GroovyLocks. If I had more memory to play with, I would do so much more, but at the moment I am very lenient on what I add. Next update will contain something much better than just a visual display
    Last edited by June'sIphone; 07-18-2014 at 08:03 PM.

  14. The Following 2 Users Say Thank You to June'sIphone For This Useful Post:

    DutchMaster22 (07-18-2014), mcooper (07-19-2014)

  15. #552
    Version 1.2.1 crashes as soon as I swipe to unlock. Anyone else with the same issue? Went to downgrade to 1.1.0 but no where to be found.

    Well, found 1.1.0- no crashes. Definitely something up with 1.2.1.

    Anyway, here is a weather lockscreen. Under 30 lines, no ajax calls, no widget weather, and no jQuery. Simple and straight to the point.
    Configure to celsius
    Code:
    var tempswitch="f"; //change to c for celsius

    Download Simple

    Attached Images Attached Images
    Last edited by June'sIphone; 07-19-2014 at 01:37 AM.

  16. The Following 2 Users Say Thank You to June'sIphone For This Useful Post:

    nateD (10-05-2014), st0n3parad0x (07-19-2014)

  17. #553
    Evil Genius Developer GroovyCarrot's Avatar
    Join Date
    Jan 2012
    Location
    Liverpool, United Kingdom
    Posts
    560
    Thanks
    101
    Thanked 2,196 Times in 480 Posts

    ImageUploadedByModMyi1405764006.685128.jpg

    It works just fine for me on iPhone 5S 7.1.2
    I am running 1.2.2 but only difference is hidden LS elements integrated, lock code is the same. Haven't managed to get the clock to stay hidden yet so haven't bothered releasing

  18. The Following User Says Thank You to GroovyCarrot For This Useful Post:

    jawonder (07-19-2014)

  19. #554
    Quote Originally Posted by GroovyCarrot View Post
    ImageUploadedByModMyi1405764006.685128.jpg

    It works just fine for me on iPhone 5S 7.1.2
    I am running 1.2.2 but only difference is hidden LS elements integrated, lock code is the same. Haven't managed to get the clock to stay hidden yet so haven't bothered releasing
    Strange. I am on 7.0.4 on this device. Turned off substrates via iCleaner still the same. Deleted about 5 tweaks still SM. Don't even have to swipe, just tap the screen. I can install 1.1.0 then immediately install 1.2.1 and it's fine. After respring the slightest touch brings SM. Will try on 7.1.1 later.

  20. #555
    Ajax and JSON calls are the same thing in terms of memory management, Jake?

    Edited:
    For me on 5S 7.0.6, and GL 1.2.1 June's Simple LS goes into immediate SafeMode crash WITH or WITHOUT Apple Passcode Lock.

    On 1.2.0 no crashing with Passcode lock off - for any lockscreen. With Passcode lock on - higher animation = some crashing.
    Last edited by NewdestinyX; 07-19-2014 at 06:25 AM.
    Here to help if I can. If I can't I know someone who can!

  21. #556
    Simple with 1.2.1 works fine for me, no SM. Iphone5 7.1.2
    As long as there's hate in your heart, there'll be hate in the world. You can't fight for peace and you cannot capture freedom.

  22. #557
    Evil Genius Developer GroovyCarrot's Avatar
    Join Date
    Jan 2012
    Location
    Liverpool, United Kingdom
    Posts
    560
    Thanks
    101
    Thanked 2,196 Times in 480 Posts

    I really struggle to replicate crashes on 7.1.2, though WebKit is much more stable. I was going to upload a video of me hammering touch/swipes on the lockscreen with no issue or instabilities with Dacal's CircleWeather with heavy rain animations, but I don't have a service for that

  23. #558
    7.1.1 no safemode. Must be a 7.0.4 thing.
    Last edited by June'sIphone; 07-19-2014 at 08:10 AM.

  24. #559
    Default GroovyLock (HTML LockScreen Platform)
    I5
    7.1.1 no sm
    Click My Sig For my auros Mods

  25. #560
    Default GroovyLock (HTML LockScreen Platform)
    installed, running lbevo w GL had only 1 SM a few minutes after install w/out doing anything after that haven't seen anymore sm's on 7.1.2

Page 28 of 52 FirstFirst ... 182627282930 38 ... LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •