[PLUGIN] BlackBerry 10

Post your completed addons to share with the community

Post » Wed Oct 23, 2013 12:14 am

@stroker5: Can you elaborate a little on "minimization behavior"? Would that just be a notification / trigger for when the application gets minimized?
B
4
S
1
Posts: 79
Reputation: 808

Post » Mon Nov 18, 2013 6:33 am

Hi @WaterlooErik, I check the Plugin, but testing my Game and the "Hello World" cant register or integrate BBM! I'm doing something wrong or is there a problem with the plugin?
Greetings!
B
5
Posts: 2
Reputation: 381

Post » Tue Nov 19, 2013 9:09 pm

I've managed to reproduce this and find a workaround.

First, please ensure that you've modified your config.xml to include the necessary permissions and features.


BBM

<rim:permissions>
    ...
    <rim:permit>bbm_connect</rim:permit>
    ...
</rim:permissions>

<feature id="blackberry.bbm.platform" />


Payment

<feature id="blackberry.payment" />


Second, there seems to be an issue stemming from minifying the scripts. When minified, I noticed Web Inspector was logging the following error:
blackberry.bh.platform is undefined

The API should be blackberry.bbm.platform, but the minification process appears to be changing the API signature to something that does not actually exist.

When I opted to not minify the scripts, the API executed as blackberry.bbm.platform and proceeded to function.

No changes were made to the CAPX file or plugin files.


Can you give this a shot?
B
4
S
1
Posts: 79
Reputation: 808

Post » Tue Jan 14, 2014 4:01 pm

For reference, updated information on integrating with WebWorks SDK 2.0 can be found here:
https://github.com/blackberry/Construct2Plugins/tree/WebWorks-2.0
B
4
S
1
Posts: 79
Reputation: 808

Post » Wed Jan 15, 2014 12:09 am

@WaterlooErik

To support minify, I think you have to do this

from
blackberry.payment.getExistingPurchases

to
blackberry["payment"]["getExistingPurchases"]

https://www.scirra.com/manual/22/runtime-overview
B
75
S
22
G
14
Posts: 388
Reputation: 12,222

Post » Mon Jan 20, 2014 8:24 pm

Ah, good find! I'll make those changes.
B
4
S
1
Posts: 79
Reputation: 808

Post » Wed Feb 12, 2014 4:57 pm

any difference in these two versions besides the documentation?

https://github.com/blackberry/Construct2Plugins

and

https://github.com/blackberry/Construct2Plugins/tree/WebWorks-2.0
B
41
S
17
G
8
Posts: 484
Reputation: 8,261

Post » Thu Feb 13, 2014 4:01 pm

Nope, functionally they should be the same. I'm setting a bit of time aside soon to re-look at the plugin and hopefully streamline some of the steps (it was the first plugin I wrote.)
B
4
S
1
Posts: 79
Reputation: 808

Post » Thu Feb 13, 2014 6:50 pm

Looking forward to it! I am finishing up my BB10 app currently. Just plugging in your plugin to submit it xD

I will be using the new webworks method.


[QUOTE=WaterlooErik] Nope, functionally they should be the same. I'm setting a bit of time aside soon to re-look at the plugin and hopefully streamline some of the steps (it was the first plugin I wrote.)[/QUOTE]
B
41
S
17
G
8
Posts: 484
Reputation: 8,261

Previous

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests