Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums on April 1st. BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com


Reply
Highlighted
Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange
Accepted Solution

How to get dynamic licence key from Cascades/Native

Hi,

 

Having spent all day reading up on generating license keys with the usual confusion that comes from RIM's documentation I can now implement a dynamic license system in Java.

 

The trouble is my apps in  C++/Cascades.

 

According to documentation its on the device in a key paring accessed by the CoreModule.

 

In Java you would do this after initialising the CoreModule;

  String lc = group.getProperty("RIM_APP_WORLD_LICENSE_KEY");

 

How do I retrieve it using native??

 

If this is not possible then second best how can I get the device id?


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: How to get dynamic licence key from Cascades/Native

Noone else doing this?


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: How to get dynamic license key from Cascades/Native

OK, so turns out this isn't possible as RIM have apparently abandoned Dynamic licenses for BB10,

 

Sure enough you can get a PIN and a license key, starting with "test...", from your package when debugging but any hashing code you write using these won't work in the release, two options exist, either;

 

1. Develop your own licensing system (pending as whether this will be necessary, watch piracy a few months after BB10 release)

 

2. Use the in app purchasing APIs.

 

The full discussion on this can be found in the cascades forum with a link to a response from RIM.

 

http://supportforums.blackberry.com/t5/Cascades-Development/How-to-get-dynamic-licence-key-from-Casc...

 


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.