Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

BlackBerry App World™ Development

Reply
Developer
RLord321
Posts: 343
Registered: 02-23-2009

Re: Dynamic license key

Handango supports licensing almost the same way as AppWorld and MobiReach.  You'll see that they all copied from one another.  Handango offers a better layer of security, though.

 

You can implement them the same.  If you already have the code for MobiReach setup, just modify it slightly to account for the different Vendors.  For instance, I have Mobihand/reach, Handango, and AppWorld.  I add a AppSource parameter to my dynamic license URL and I look at that to see where the license request came from.  Based off of that, I would execute the Handango logic, the Mobihand logic, or the AppWord logic.  The Key generation code is the same so the only logic you will have to determine is what parameters to read and how to return your response since they are all slightly different from each vendor.

 

I hope this helps.

Please use plain text.
Developer
pfiffi78
Posts: 241
Registered: 01-29-2009

Re: Dynamic license key

Hello,

 

I habe now read plenty about how a dynamic license key is being requested by App World from the vendor's portal.

 

But the bit I am still missing is: How does the key, that is returned to AppWorld get into the application the user is downloading so that application can confirm it's a valid license key?

 

Have I missed something here ?

 

 

Best Regards,

Daniel

Please use plain text.
Developer
lcamobile
Posts: 76
Registered: 03-15-2010
My Carrier: Rogers

Re: Dynamic license key

 

You will need to handle getting the key into the app in your own code.
If the purchase is made from App World, the license gets written into the device's memory. You can look for it here and import it automatically into the app if it exists. See this thread for code samples : http://supportforums.blackberry.com/t5/BlackBerry-App-World-Development/Dynamic-Licensing-Clarificat...
We also provide a manual entry screen with a "Paste" button for users who purchase the app through different channels, or who have a problem with the App World key. This lets us generate keys from anywhere and email them to the customer who can then copy/paste and get up and running.
After validating, you can store the key to persistent storage so the customer does not have to enter it every time.
Jason
www.lcamobile.com

pfiffi78 wrote:

Hello,

 

I habe now read plenty about how a dynamic license key is being requested by App World from the vendor's portal.

 

But the bit I am still missing is: How does the key, that is returned to AppWorld get into the application the user is downloading so that application can confirm it's a valid license key?

 

Have I missed something here ?

 

 

Best Regards,

Daniel


 

Please use plain text.
Developer
pfiffi78
Posts: 241
Registered: 01-29-2009

Re: Dynamic license key

Thank you Jason. That's the missing link. Wish there was a general developer How-To for this instead of everybody trying to figure out the same answers over and over again :-) Have a good weekend. 

Please use plain text.
Developer
lcamobile
Posts: 76
Registered: 03-15-2010
My Carrier: Rogers

Re: Dynamic license key

Glad to help, I know I spent hours scouring this forum when I was trying to get our licensing going. Thanks to the kind people posting here, I managed to get everything running properly.

 

If I ever get an hour to myself I'd like to summarize all the info into a single document. It certainly is not easy to put together all the pieces right now.

 

Jason

www.lcamobile.com

Please use plain text.
Contributor
ShaynePierce
Posts: 16
Registered: 09-24-2010
My Carrier: TMO

Re: Dynamic license key

redbutt  - I know this was posted long ago - but do have any further advice or update to this code for responding to the BB App World  Dynamic licensing model in PHP?  

Please use plain text.
Developer
sblantipodi
Posts: 1,082
Registered: 02-19-2009

Re: Dynamic license key

simply answer with a echo.

Please use plain text.
New Contributor
sim51177
Posts: 2
Registered: 12-15-2010

Re: Dynamic license key

Howdy. I'm using DeviceInfo.getDeviceId() to get the device id which is the integer version of the PIN (which is hex, so i have been told).  Does anyone know if the PIN sent to the dynamic url is The INT or HEX version of the Device Id?

Please use plain text.
Developer
pfiffi78
Posts: 241
Registered: 01-29-2009

Re: Dynamic license key

You get the HEX version of the PIN
Please use plain text.
Developer
RLord321
Posts: 343
Registered: 02-23-2009

Re: Dynamic license key

sim51177, You do get the PIN in Hex format but sometimes (not often) it comes over as Decimal. This normally happens after a surprise update of App World. To prepare yourself for both formats, assume that a PIN with 9 characters is in Decimal format and a PIN with 8 characters is in Hex format. Convert the Decimal PIN to Hex if applicable and then go through your normal processing (validate the Hex PIN, insert a record into your database, send yourself a "Cha-Ching" email, etc).
Please use plain text.