Smartphone Test Device Not Showing the splashscreen #923

ferminpt opened this Issue Jun 28, 2013 · 10 comments


None yet
3 participants

I have tested my application using Ripple Emulator, and Dev Alpha Simulator 10.1. The application works and is being rendered in those test devices. However when I installed it to either BB Z10 Dev Alpha B or BB Q10 Dev Alpha C devices the application does not show the splashscreen which is a show stopper for the app.

I used to remotely view the console logs of the app and in the device it encounters a null error in bbui.js at function initContainer at line which executes the code below:


The JSConsole returns that line as TypeError: 'null' is not an object

I output the container variable and it is not null but an object of type HTMLDivElement.

Can I ask for advise on how to resolve this error?


Btw, I used version of bbui.


tneil commented Jun 28, 2013

Are you listening for the webworksready event before calling bb.init()

yes I am calling bb.init() to the webworksready event listener. The pattern for the code I used is like the code below.

      document.addEventListener('webworksready', function(e) {
                    var config = {controlsDark: false,
                                    listsDark: false,
                                    coloredTitleBar: true};
                    config.onscreenready = function(element, id, data) {  ... }
                    config.ondomready = function(element, id, params) { ... }


                    bb.pushScreen("splashscreen.htm" , "splashscreen", {});
      }, false);

tneil commented Jun 30, 2013

Do you have old sample code that used to check to see if it was BB10 and then also create and fire a webworksready call.

Double check the BB10 sample code and make sure that you aren't raising a second webworksready event by accident. If this happens, then it will fire before the webworksready event and you will get a blank screen.

ferminpt commented Jul 1, 2013

I already replaced the event listener for load event as coded in the link you provided. Unfortunately, it is still a black screen and the same error at the initContainer function.


tneil commented Jul 2, 2013

It's hard to tell from the details you have posted so far. I typically go by what I have in the sample application that is used for all my testing which works on all devices, Ripple and simulators


tneil commented Jul 2, 2013

I would also suggest using the latest version of bbUI which has the most up to date code

ferminpt commented Jul 3, 2013

I already used the recent js and css in the app.

I just observed that in simulator DOM are initialized before executing the bb.pushScreen function unlike in the device, the DOM has not yet initialized before executing the bb.pushScreen that is why the black screen is being displayed in the app.

The workaround I created regarding the issue, since I am also using JQuery in the app, is to execute the bb.pushScreen within a dom ready event.

Thanks for the help.


tneil commented Jul 3, 2013

That is really strange that the webworksready event is firing before the dom is ready. I have never seen this happen on any OS version either internal and external. Is there any way you can post the full contents of your index.htm file for me to see?

Hi @tneil im have the same problem, TypeError: 'null' is not an object evaluating ( document.body.appendChild(container);
This error occurs on line 341 of the version of bbui.js ( ). evaluating the following exprecion I think the problem is due to that, try to insert the scripts before they finished loading the body. has there been a similar report? I wait your answer in the meantime I will check your commit 43d619c

many tanks, regards, from BB TechCenter San Luis, Argentina


tneil commented Aug 23, 2013

Make sure you are first listening for the load event on window, before attaching your listener for the webworks ready event.

tneil closed this Jul 17, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment