Blank screen when loading my app on the Q10 / Dev alpha C #684

Closed
bglowDragosh opened this Issue Feb 11, 2013 · 20 comments

Comments

Projects
None yet
6 participants
@bglowDragosh

[I believe this may be due to an issue in my code or a WebWorks issue more than a bbUI related issue. Also posted this on the WebWorks github: https://github.com/blackberry/BB10-WebWorks-Framework/issues/624]

My WebWorks app (it uses bbUI) does not load up properly on the Q10 VMware emulator, nor on the Dev Alpha C device:

  • on the emulator: after several attempts of loading it on the VMWare Q10 simulator, when it finally does load, I just get a blank black screen.
  • on the dev alpha C device: I got a blank white screen when I tried loading it on the device.

Note: my app loads and runs with no issues on the Dev Alpha A/B, PlayBook and Z10 devices, the dev Alpha A/B VMWare emulator, and both Z10 & Q10 emulators in Ripple.

Anyone else getting this issue? What could I be doing wrong?
PS : I also checked the console log in Ripple for bugs and I could not find any.

@tneil

This comment has been minimized.

Show comment Hide comment
@tneil

tneil Feb 11, 2013

Member

What version of bbUI are you using?

Member

tneil commented Feb 11, 2013

What version of bbUI are you using?

@bglowDragosh

This comment has been minimized.

Show comment Hide comment
@bglowDragosh

bglowDragosh Feb 11, 2013

I have downloaded the latest build of 0.9.6 yesterday. (Everything works with no issues and scales up properly on the Q10 Ripple emulator)

I have downloaded the latest build of 0.9.6 yesterday. (Everything works with no issues and scales up properly on the Q10 Ripple emulator)

@tneil

This comment has been minimized.

Show comment Hide comment
@tneil

tneil Feb 11, 2013

Member

Hmm.. wonder if the webworksready event is firing on the DevAlpha. I have a Q10 here and it is loading fine on it.

Member

tneil commented Feb 11, 2013

Hmm.. wonder if the webworksready event is firing on the DevAlpha. I have a Q10 here and it is loading fine on it.

@splatterb0y splatterb0y referenced this issue in blackberry/BB10-WebWorks-Framework Feb 11, 2013

Closed

Blank screen when loading my app on the Q10 / Dev alpha C #624

@bglowDragosh

This comment has been minimized.

Show comment Hide comment
@bglowDragosh

bglowDragosh Feb 11, 2013

No clue..
I have tried removing all bbUI components from the app, and the app loaded on the Alpha C VMware emulator.
I will keep trying to figure it out. [My kingdom for a remote web inspector on an Alpha C device]

No clue..
I have tried removing all bbUI components from the app, and the app loaded on the Alpha C VMware emulator.
I will keep trying to figure it out. [My kingdom for a remote web inspector on an Alpha C device]

@tneil

This comment has been minimized.

Show comment Hide comment
@tneil

tneil Feb 15, 2013

Member

I've loaded the sample application onto the simulator and it seems to be working fine. Double check that you have loaded the simulator bar and not the device bar

Member

tneil commented Feb 15, 2013

I've loaded the sample application onto the simulator and it seems to be working fine. Double check that you have loaded the simulator bar and not the device bar

@tneil

This comment has been minimized.

Show comment Hide comment
@tneil

tneil Feb 16, 2013

Member

Are you initializing the toolkit and doing a bb.pushScreen() in the "webworksready" event like the sample?

Member

tneil commented Feb 16, 2013

Are you initializing the toolkit and doing a bb.pushScreen() in the "webworksready" event like the sample?

@tneil

This comment has been minimized.

Show comment Hide comment
@tneil

tneil Feb 19, 2013

Member

I'll mark this issue as closed unless I hear otherwise.

Member

tneil commented Feb 19, 2013

I'll mark this issue as closed unless I hear otherwise.

@tneil tneil closed this Feb 19, 2013

@bglowDragosh

This comment has been minimized.

Show comment Hide comment
@bglowDragosh

bglowDragosh Feb 21, 2013

Sorry for the delay, I've been away.
Turns out, this old code snippet in my index.htm file was preventing my app from loading up on the Q10:

<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" >

Sorry for the delay, I've been away.
Turns out, this old code snippet in my index.htm file was preventing my app from loading up on the Q10:

<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" >
@asiayeah

This comment has been minimized.

Show comment Hide comment
@asiayeah

asiayeah Mar 13, 2013

I actually have a blank screen when testing an app with bbUI.js 0.9.5 on Dev Alpha C Simulator. Do I need to upgrade to the latest bbUI.js to get my app working on Dev Alpha C? Thanks.

I actually have a blank screen when testing an app with bbUI.js 0.9.5 on Dev Alpha C Simulator. Do I need to upgrade to the latest bbUI.js to get my app working on Dev Alpha C? Thanks.

@splatterb0y

This comment has been minimized.

Show comment Hide comment
@splatterb0y

splatterb0y Mar 13, 2013

@asiayeah Since support for the Dev Alpha C is added in the 0.9.6 branch I guess you require this one.

@asiayeah Since support for the Dev Alpha C is added in the 0.9.6 branch I guess you require this one.

@tneil

This comment has been minimized.

Show comment Hide comment
@tneil

tneil Mar 13, 2013

Member

Also check your index.htm. The sample code was wrong and would also cause a blank screen. The sample code was fixed with this check-in

b716a35

Member

tneil commented Mar 13, 2013

Also check your index.htm. The sample code was wrong and would also cause a blank screen. The sample code was fixed with this check-in

b716a35

@asiayeah

This comment has been minimized.

Show comment Hide comment
@asiayeah

asiayeah Mar 14, 2013

@tneil Thank you! That gives me very good hint.

There's also a similar change required in bbUI.js to support Q10:

  •                   bb.device.isBB10 = (navigator.userAgent.indexOf('Version/10.0') >= 0);
    
  •                   bb.device.isBB10 = (navigator.userAgent.indexOf('BB10') >= 0);
    

That gives me a good start to test my existing apps on Q10. I've patched bbUI.js quite a bit for my own use...Eventually I would upgrade to 0.9.6 for the Q10 styling and other changes.

Thank you.

@tneil Thank you! That gives me very good hint.

There's also a similar change required in bbUI.js to support Q10:

  •                   bb.device.isBB10 = (navigator.userAgent.indexOf('Version/10.0') >= 0);
    
  •                   bb.device.isBB10 = (navigator.userAgent.indexOf('BB10') >= 0);
    

That gives me a good start to test my existing apps on Q10. I've patched bbUI.js quite a bit for my own use...Eventually I would upgrade to 0.9.6 for the Q10 styling and other changes.

Thank you.

@tneil

This comment has been minimized.

Show comment Hide comment
@tneil

tneil Mar 14, 2013

Member

Just be aware that there are MANY, MANY changes that are in 0.9.6 in order to support Q10. From keyboard support differences, control sizing and behaviors to action bar differences.

By simply changing the user agent detection you will likely see a lot of errors without picking up the rest of the changes in 0.9.6

Member

tneil commented Mar 14, 2013

Just be aware that there are MANY, MANY changes that are in 0.9.6 in order to support Q10. From keyboard support differences, control sizing and behaviors to action bar differences.

By simply changing the user agent detection you will likely see a lot of errors without picking up the rest of the changes in 0.9.6

@asiayeah

This comment has been minimized.

Show comment Hide comment
@asiayeah

asiayeah Mar 14, 2013

@tneil Thanks, Tim. I will definitely upgrade to 0.9.6 before Q10 launches. Any idea when 0.9.6 might go to a published state?

@tneil Thanks, Tim. I will definitely upgrade to 0.9.6 before Q10 launches. Any idea when 0.9.6 might go to a published state?

@tneil

This comment has been minimized.

Show comment Hide comment
@tneil

tneil Mar 14, 2013

Member

It is basically "published" already.. we just keep hacking away at it.

Member

tneil commented Mar 14, 2013

It is basically "published" already.. we just keep hacking away at it.

@anwaark

This comment has been minimized.

Show comment Hide comment
@anwaark

anwaark Mar 30, 2013

I want to use the same app for Z10 and Q10. While doing the changes for porting the app to Q10, we tested the app on Z10 also. The whole UI gets distorted on Z10. We are using bbui.js 0.9.6 version.

It works fine on the Ripple emulator. what could be the issue. We were previously using bbui.js 0.9.5 version.

anwaark commented Mar 30, 2013

I want to use the same app for Z10 and Q10. While doing the changes for porting the app to Q10, we tested the app on Z10 also. The whole UI gets distorted on Z10. We are using bbui.js 0.9.6 version.

It works fine on the Ripple emulator. what could be the issue. We were previously using bbui.js 0.9.5 version.

@tneil

This comment has been minimized.

Show comment Hide comment
@tneil

tneil Mar 30, 2013

Member

@anwaark Can you open up a new issue with the specifics of the problems you are seeing, possibly some screen shots if possible. Also the exact version of 0.9.6 that you are using.

What you are asking for is all possible, the sample does exactly what you're looking for. We would just need to get to the root of what may be going wrong for you

Member

tneil commented Mar 30, 2013

@anwaark Can you open up a new issue with the specifics of the problems you are seeing, possibly some screen shots if possible. Also the exact version of 0.9.6 that you are using.

What you are asking for is all possible, the sample does exactly what you're looking for. We would just need to get to the root of what may be going wrong for you

@infiniteloopltd

This comment has been minimized.

Show comment Hide comment
@infiniteloopltd

infiniteloopltd Oct 4, 2013

I'd also like to say that the latest version of BBUI.js causes a white screen when run on a real Z10 device (OS version 10.0.10.82), the same code works perfectly on Playbook and Ripple.

BB Testing also report white screen errors on the BlackBerry Z10, on the BlackBerry Q10, on the BlackBerry Q5 and on the BlackBerry Z30.

I'd also like to say that the latest version of BBUI.js causes a white screen when run on a real Z10 device (OS version 10.0.10.82), the same code works perfectly on Playbook and Ripple.

BB Testing also report white screen errors on the BlackBerry Z10, on the BlackBerry Q10, on the BlackBerry Q5 and on the BlackBerry Z30.

@tneil

This comment has been minimized.

Show comment Hide comment
@tneil

tneil Oct 4, 2013

Member

All is working fine on a real Z10... have you ensured that you followed the steps in this github issue and adjusted your initialization code as updated in the sample?

https://github.com/blackberry/bbUI.js/blob/master/samples/bb10/index.htm#L28

Member

tneil commented Oct 4, 2013

All is working fine on a real Z10... have you ensured that you followed the steps in this github issue and adjusted your initialization code as updated in the sample?

https://github.com/blackberry/bbUI.js/blob/master/samples/bb10/index.htm#L28

@infiniteloopltd

This comment has been minimized.

Show comment Hide comment
@infiniteloopltd

infiniteloopltd Oct 4, 2013

Hi all,

Solved the problem. I was using an old version of the BlackBerry Webworks SDK. I upgraded to Webworks Gold (BlackBerry 10 WebWorks SDK 1.0.4.11) and the problem went away.

Thanks for all the help!

Hi all,

Solved the problem. I was using an old version of the BlackBerry Webworks SDK. I upgraded to Webworks Gold (BlackBerry 10 WebWorks SDK 1.0.4.11) and the problem went away.

Thanks for all the help!

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