Construct 2 and BlackBerry WebWorks 2.0+

Discussion and feedback on Construct 2

Post » Thu Dec 12, 2013 3:30 am

Hello all, I just wanted to pass along this guide for any developers targeting BlackBerry 10 with the new Cordova-based SDK.
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Construct-2-Webworks-SDK-2-0/td-p/2704887

The approach is a little different from before. We're now exporting to "HTML5" instead of "BlackBerry 10", and there is a bit of command-line in there but it's pretty straight-forward. If you do have any questions, don't hesitate to fire me a message.

Any feedback is also welcome, as the information in that post will eventually make its way to the official documentation and replace the current guide. Hopefully we'll be able to get some tighter integration with the IDE using this new approach as we currently have with the previous SDK.

Regarding plugins, I still need to explore how this new approach affects everything, but it should be close to what we had before. I'll update the document with information on plugins once I've had a chance to test a little bit.

Cheers!
B
4
S
1
Posts: 79
Reputation: 808

Post » Thu Dec 12, 2013 6:48 am

@WaterlooErik

how many users have the latest BlackBerry devices?
B
18
S
7
G
1
Posts: 783
Reputation: 4,237

Post » Thu Dec 12, 2013 6:59 pm

This new SDK has the same OS compatibility as the previous SDK, so the reach of your applications built with the new SDK does not change, just the manner in which the packaging process takes place.

In terms of number of users with the latest BlackBerry devices, I don't have those numbers.

For the most part, device OS updates happen very quickly. The infographic here (from July) shows 23% on 10.0 however most of that was due to the delayed U.S. launch.
https://developer.blackberry.com/blackberryworld/

End users are updating quickly once the OS becomes available from their carrier. I recommendation today is targeting 10.2 for new projects as that will cover the 10.2.1 release as well, which should cover the majority of end users.

I'll see though if I can get more up-to-date figures than those from July.
B
4
S
1
Posts: 79
Reputation: 808

Post » Thu Dec 12, 2013 7:10 pm

@WaterlooErik

I think with construct 2 it should be simple enough to expand your projects to newer devices but how would we go about testing our apps on the blackberry 10? Is there an emulator that could give us some understanding on the performance and how well it will run? Or is there someone we can contact to have it tested before submitting?
B
18
S
4
G
3
Posts: 436
Reputation: 4,801

Post » Thu Dec 12, 2013 8:50 pm

There is a BlackBerry 10 simulator available for download here:
https://developer.blackberry.com/html5/download/

While it is the actual OS, it is rebuilt with an x86 architecture as opposed to the ARM architecture of BlackBerry 10 devices. In addition, performance in the simulator is dependent on the overall performance of your PC. As a result, there may be differences in behaviour between the two, though usually the simulator gives a good representation of what to expect on physical devices.

If you do not have physical hardware for testing, I am happy to test your applications and provide my detailed feedback. Simply fire me an email ([email protected]) with a link to the BAR file and I'll give it a run on physical hardware (BlackBerry Z10/Z30).

From time to time, we do also have promotions and contests where we offer up devices as rewards. A good way to stay up to date is to monitor our DevBlog (http://devblog.blackberry.com) or just email me from time to time and I'll let you know if anything is coming up. :-)

Cheers!
B
4
S
1
Posts: 79
Reputation: 808

Post » Sat Jan 11, 2014 11:20 am


@WaterlooErik

Hi Erik,

thanks a lot for helping us.

Your tutorial on the BB developer portal is great and very useful.

Could you please help me setting up the testing environment?

I've followed all the tutorial steps until the 'webworks run' command. I've installed BB Webworks SDK 2.0.0.54 and the BlackBerry simulator installed on WMware and running. I've added the device by command line as described in setting_up_test_targets page and it is now in the target list ('webworks target' command). The simulator is running but I don't know how to make the execution program 'aware' of the simulated device: I keep on getting the "No connected Blackberry 10 device found" message on command prompt.

UPDATES:

With the command webworks emulate, followed by --devicepassword <password> and --target <target name>, the app was passed to the simulator and executed, but just to show a blank screen. A 'mail' inside the simulator reminds that I must verify the blackberry ID. Now I've verified it, but still get blank screen when app is launched on simulator (app is in alpha phase, but perfectly working on android). What could make this happen?

Thanks in advance

Best

zorida2014-01-11 12:32:32
B
8
S
3
G
1
Posts: 19
Reputation: 841

Post » Mon Jan 13, 2014 10:18 pm

A blank screen is most often due to some Javascript error during startup. Have you tried to connect Web Inspector to the simulator and monitor the console for errors? Once you see the first white screen and connect Web Inspector, pressing ctrl+r in Web Inspector will reload the application, and is a good way of monitoring everything from the start.

If you email me a ZIP of the HTML5 output, I can give it a try here as well.
B
4
S
1
Posts: 79
Reputation: 808

Post » Fri Jan 17, 2014 7:42 am

@zorida

Usually when the screen turns black on the simulator it's because you have enable the WebGL, so to solve this issue you have to put this attribute "Off" on the Configurations Settings of your "Project". But don't worry on a real device it will runs like a charm with or without WebGL there is just an issue of the simulator.

Aside, if you are using the BB10 Plugin, when you export your project unmark the option "Minify script" because if you minify the script it wont works. There is an issue so is just an advice in case you are using it.Rapzuz2014-01-17 07:44:44
B
2
Posts: 3
Reputation: 156

Post » Fri Jan 17, 2014 12:01 pm

Thank you all very much for your suggestions, I will let you know soon
B
8
S
3
G
1
Posts: 19
Reputation: 841

Post » Mon Jan 20, 2014 8:26 pm

Just as an FYI, I've had a suggestion from the community here as to why minifying isn't working. I am currently using the following signatures:
blackberry.payment.purchase

Whereas the recommendation is:
blackberry['payment']['purchase']

I'll make these changes in the next round and hopefully address the minifying issue.
B
4
S
1
Posts: 79
Reputation: 808

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Huemerson, mihirolover, Yahoo [Bot] and 3 guests