Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Regular Visitor
phanster
Posts: 1
Registered: ‎02-14-2012
My Device: Bold 9830
My Carrier: T Mobile

Re: URGENT - PROBLEM DEVICE - BOLD 9780 - WebWorks Crashing

I'm having the same issue on a Bold 9730 6.0.0.285 device. Crashes on open after loading the initial HTML page. Happens about 80% of the time - delaying opening the app makes it open better sometimes (I would imagine its because the browser field has has time to deallocate its DOM bindings).

 

If there isn't a solution, is there a way for to know how much memory we are using and make sure we are under a threshold so it doesn't crash? It seems that even the most basic HTML page with no content will crash if you open and close the app fast enough.

Please use plain text.
New Developer
peppin
Posts: 40
Registered: ‎12-28-2011
My Device: Torch 9800
My Carrier: AT & T

Re: URGENT - PROBLEM DEVICE - BOLD 9780 - WebWorks Crashing

Hi, I'm also experiencing same problem. I'm using 9800 with OS 6.0.0.284 and my webworks app just crashing immediately after splashscreen. Haven't tried upgrading to higher OS version though, but does this mean that OS 6.0.0.2xx and lower ( OS 5.0 and OS 4.5 ) cannot run webworks app?

Please use plain text.
Contributor
HaggleLad
Posts: 24
Registered: ‎10-12-2011
My Device: Lots
My Carrier: All

Re: URGENT - PROBLEM DEVICE - BOLD 9780 - WebWorks Crashing

[ Edited ]

The ONLY solution is to do as I suggested in a previous post.  You have to create a lightweight landing page that performs a version check.  If the users devices passes the version check only then do you redirect to the appropriate app page.

 

Here's the code I'm using....

 


document.addEventListener("DOMContentLoaded", function() {
    
    var versionAsString = blackberry.system.softwareVersion;
    var versionArray = versionAsString.split(".");
    var versionIsGood = true;

    if (versionArray.length == 4) {
        try {
            var part0 = parseInt(versionArray[0]);
            var part1 = parseInt(versionArray[1]);
            var part2 = parseInt(versionArray[2]);
            var part3 = parseInt(versionArray[3]);

            if (part0 < 6) {
                // Device is version 5 or lower this isn't sufficient
                versionIsGood = false;
            }
            else if (part0 == 6) {
                // Device is version 6, continue checking
                if (part1 == 0) {
                    // Device is version 6.0.?.? continue checking
                    if (part2 == 0) {
                        // Device is version 6.0.0.? continue checking
                        if (part3 < 448) {
                            // Device is version 6.0.0.448 or lower, not good enough
                            versionIsGood = false;
                        }
                    }
                }
            }
        }
        catch(e) {
            // Parsing the version info failed but we only show a warning if we could actually determine the version
            versionIsGood = true;
        }
    }
    else {
        // There were not 4 parts to the version number  but we only show a warning if we could actually determine the version
        versionIsGood = true;
    }

    if (!versionIsGood) {
        alert("WARNING: Your device is running version " + versionAsString + " of the BlackBerry OS. " +
            "You MUST upgrade to version 6.0.0.448 or higher to ensure all features of this app run without problem. " +
            "Please visit http://blackberry.com/update for details of how to upgrade.")
    }

    // For some reason it doesn't like it if we redirect straight away so pause for a bit before.
    setTimeout(redirect, 1500);

}, false);


function redirect() {
    window.location.href = "AppStart.htm";
}


Please use plain text.
Developer
StevenKader
Posts: 638
Registered: ‎02-03-2010
My Device: Z10 LE
My Carrier: Rogers

Re: URGENT - PROBLEM DEVICE - BOLD 9780 - WebWorks Crashing

You probably thought of this but any way to make the HTML page use less memory....not sure what your page has but perhaps looking at image sizes and other HTML optimizations may help.


Steven Kader at JaredCo
   Follow me on Twitter    |     Mipixi.com :  Web App for Photo Sharing
Please use plain text.
Contributor
HaggleLad
Posts: 24
Registered: ‎10-12-2011
My Device: Lots
My Carrier: All

Re: URGENT - PROBLEM DEVICE - BOLD 9780 - WebWorks Crashing

Or focus your development effort on another mobile platform?

Please use plain text.
Developer
StevenKader
Posts: 638
Registered: ‎02-03-2010
My Device: Z10 LE
My Carrier: Rogers

Re: URGENT - PROBLEM DEVICE - BOLD 9780 - WebWorks Crashing

Agreed.  You should focus where you think you can have the most success.  I've had the most success on the BlackBerry so I continue to support it.


Steven Kader at JaredCo
   Follow me on Twitter    |     Mipixi.com :  Web App for Photo Sharing
Please use plain text.
Contributor
dblanco
Posts: 21
Registered: ‎07-24-2012
My Device: torch 9800
My Carrier: movistar

Re: URGENT - PROBLEM DEVICE - BOLD 9780 - WebWorks Crashing

I have same problem for:

BOLD 9780 version SO 6.0 package 863

Torch 9800 version SO 6.0 package 695

 

is there any solution?

thanks

Please use plain text.
Contributor
HaggleLad
Posts: 24
Registered: ‎10-12-2011
My Device: Lots
My Carrier: All

Re: URGENT - PROBLEM DEVICE - BOLD 9780 - WebWorks Crashing

Yes there is, try reading.

Please use plain text.
Contributor
dblanco
Posts: 21
Registered: ‎07-24-2012
My Device: torch 9800
My Carrier: movistar

Re: URGENT - PROBLEM DEVICE - BOLD 9780 - WebWorks Crashing

With any previous version of SDK someone could run applications under the 6.0.0.448 OS?

Such as WebWorks SDK for BlackBerry smartphones 2.3.

thanks

Please use plain text.