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
New Developer
Posts: 46
Registered: ‎01-14-2011
My Device: BB10
My Carrier: ATT

App crashes on startup as soon as I click the icon

I am converting my Playbook web works app to BB10 and I am trying to run it on the BB10 simulator. I installed the new sdk, built the app and installed it on the simulator. As soon as I click the icon to launch the app, the app crashes. It is less than a second, I don't even get to the point of seeing a splash screen.

 

Any suggestions or places I should look first?

Mike
marcucio.com - productivity apps
http://marcucio.com
Retired
Posts: 245
Registered: ‎09-21-2012
My Device: Q10
My Carrier: Virgin

Re: App crashes on startup as soon as I click the icon

I'm assuming that this is a webworks application. Have you tried the following:

 

1. I'm assuming you used the BB10 webwork packager and SDK?

2. Check your config.xml for the proper elements for a BB10 application vs Playbook. The docs are found here: https://developer.blackberry.com/html5/apis/bb10_index.html

3. Are you using any librairies that have been updated for BB10 ie: latest version of BBUI.js

4. Try pulling some things out of your files and seeing if they effect it.

 

Let me know if you have any more information.

@erikjohnzon
erjohnson@blackberry.com
New Developer
Posts: 46
Registered: ‎01-14-2011
My Device: BB10
My Carrier: ATT

Re: App crashes on startup as soon as I click the icon

Yes I am using BB10 webworks packager and SDK

 

here is my config file, It looks like everything should work:

 

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="4.3.1" id="GetItDone" rim:header="RIM-Widget:rim/widget">
<name>Get It Done</name>
<description>Organize your life once and for all!</description>
<author rim:copyright="2013">marcucio.com</author>
<icon src="icon.png"/>
<content src="www/index_debug.html"/>

<feature id="blackberry.app">
<param name="backgroundColor" value="0xFFFF0000" />
</feature>

<access uri="https://app.getitdoneapp.com" subdomains="true">
<feature id="blackberry.app" required="true" version="1.0.0"/>
<feature id="blackberry.invoke" required="true" version="1.0.0"/>
</access>

</widget>

 

I am not using BBUI, When I click the app icon nothing happens so I'm thinking maybe a signing issue or config file, but I'm not sure.

 

If you build with the old playbook sdk and install that on the bb10 simulator then the app works as expected.

 

I will try to pull more things out to see if it is an issue with my code or with buiding

Mike
marcucio.com - productivity apps
http://marcucio.com
Retired
Posts: 245
Registered: ‎09-21-2012
My Device: Q10
My Carrier: Virgin

Re: App crashes on startup as soon as I click the icon

Do you have a folder called www in your app? Because the index_debug.html will then need to be in your folder structure as AppFolder/www/index_debug.html.

@erikjohnzon
erjohnson@blackberry.com
New Developer
Posts: 46
Registered: ‎01-14-2011
My Device: BB10
My Carrier: ATT

Re: App crashes on startup as soon as I click the icon

yes I have a www foilder which contains all of my html and js filesI have the following structure:

 

files

--confix.xml

--icon.png

--www

-------index_debug.html

-------all other html + js files

 

also if I telnet into the simulator am I supposed to see all my javascitpt and html files? I am logged into the simulator as devuser/devuser and I get permission denied if I look in:

 

cd: /apps/GetItDone.testRel_GetItDone__96395a23/native

 

and /apps/GetItDone.testRel_GetItDone__96395a23/public/native only contains icon.png

Mike
marcucio.com - productivity apps
http://marcucio.com
New Developer
Posts: 46
Registered: ‎01-14-2011
My Device: BB10
My Carrier: ATT

sorry for type, it should read config.xml

sorry for type, it should read config.xml 

Mike
marcucio.com - productivity apps
http://marcucio.com
Retired
Posts: 245
Registered: ‎09-21-2012
My Device: Q10
My Carrier: Virgin

Re: sorry for type, it should read config.xml

Can you double check the created bar file has the right structure? Change it's ending to a zip and unzip it. You should see a manifest and a native folder, inside the native/app folder your contents should be present with your files etc...

 

I'm not sure about the permissions on the folders in the dev alpha simulator.

@erikjohnzon
erjohnson@blackberry.com
New Developer
Posts: 46
Registered: ‎01-14-2011
My Device: BB10
My Carrier: ATT

Re: sorry for type, it should read config.xml

I looks good to me:

 

Screen Shot 2013-01-29 at 11.09.47 AM.png

Mike
marcucio.com - productivity apps
http://marcucio.com
New Developer
Posts: 46
Registered: ‎01-14-2011
My Device: BB10
My Carrier: ATT

Re: sorry for type, it should read config.xml

FYI I added a file index_test.html which is just this:

 

<!DOCTYPE html>
<html>
<head>
<meta name="http-equiv" content="Content-type: text/html; charset=UTF-8"/>
<title>GID Task App</title>

</head>
<body>
<p>Hello World</p>
</body>
</html>

 

And I made that the start page and it still dosen't work, this leads me to believe it is a build issue

Mike
marcucio.com - productivity apps
http://marcucio.com
Retired
Posts: 245
Registered: ‎09-21-2012
My Device: Q10
My Carrier: Virgin

Re: sorry for type, it should read config.xml

Try pointing your config file at an external site....and add an access uri="*" tag. See if you can get a remote page with just a config working.

@erikjohnzon
erjohnson@blackberry.com