01-28-2013 08:59 PM
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?
01-29-2013 10:08 AM
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_i
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.
01-29-2013 10:43 AM
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>
<param name="backgroundColor" value="0xFFFF0000" />
<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"/>
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
01-29-2013 10:46 AM
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.
01-29-2013 11:01 AM
yes I have a www foilder which contains all of my html and js filesI have the following structure:
-------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:
01-29-2013 11:05 AM
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.
01-29-2013 11:36 AM
FYI I added a file index_test.html which is just this:
<meta name="http-equiv" content="Content-type: text/html; charset=UTF-8"/>
<title>GID Task App</title>
And I made that the start page and it still dosen't work, this leads me to believe it is a build issue
01-29-2013 11:38 AM
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.