BlackBerryOS.com - How To Sell Android Digital Goods Through Your BlackBerry PlayBook App
  • How To Sell Android Digital Goods Through Your BlackBerry PlayBook App


    While there has been a great success for developers whom have ported their Android applications to the BlackBerry PlayBook, this allows for a distribution channel for those applications which opens them up to a greater audience. What you as the Android dev want to know is how will you be able to sell digital goods from within your application to this newfound audience. Well, BlackBerry Runtime for Android Applications now supports the Android In-App Billing APIs in the recently released PlayBook OS 2.1 Beta! Continue reading for more details laid out by Garret from the Inside BB Dev Blog...

    How does it all work? Let’s start with the basics: the APIs used to make purchases in an Android application have been modified to integrate with the BlackBerry App World™ storefront. As a developer, you can add Digital Goods in the BlackBerry App World ISV Portal and then offer them for sale in your application. The really good news? The system works with the existing BlackBerry Payment Service, meaning that you can use the same Digital Goods SKUs as used previously for Item ID in the Android payment system. The rest of the Android In-App Billing APIs will continue to function as expected, which means minimal client-side code changes. All purchases made from your Android application will appear to the end user with the exact same flow as it would in a native BlackBerry PlayBook tablet application, validated and charged via BlackBerry App World.
    There are a few things to keep in mind when adding this functionality to your ported Android application:

    1. In order to test your in-app purchases, you will need to follow the steps outlined here
    2. Only one purchase may be made at a time; concurrent transactions are not currently supported
    3. Refunds are not supported from the APIs
    4. Transaction responses are not signed, so they cannot be checked (see below for more information)

    Transaction Responses Are Not Signed

    If your application attempts to verify the transaction response signature, then it will need a slight code tweak to disregard this value if testing on a BlackBerry PlayBook tablet or BlackBerry® 10 device. The easiest way to tell if your application is running on a BlackBerry device is to use the following code:

    java.lang.System.getProperty("os.name") == “qnx”If the above check is true then you should skip the transaction signature verification.

    Terminology Dictionary

    There are a few differences to how things will be referred to when switching to the BlackBerry App World Payment system. Below is a list of some of the most common changes:
    Android BlackBerry
    ItemId digitalSKU
    “Managed” transactions
    • Equivalent to what are called “Not Consumable” transactions on the BlackBerry platform
    • Can be bought only once
    • BlackBerry App World keeps track of the purchases and they will be preserved through device switches
    “Unmanaged” transactions
    • Equivalent to what are called “Consumable” transactions on the BlackBerry platform
    • Unlike the Android Market, BlackBerry App World will keep track of purchased consumable items
    Optional “developer payload” “metadata”

    That covers the basics. If you have any questions, comments or success stories, please send them our way - we’d love to hear what you have to say!


    comments powered by Disqus
  • Sponsored Ad

  • Recent Comments

  • Most Commented

    The most commented articles on BlackBerryOS over the past 24 hours.
  • Recent Forum Posts

    lnwpen88

    AOL IM Sound

    I cant find it royal1688 anywhere. Anyone know where this can be gclub found?

    lnwpen88 09-18-2014, 11:45 PM Go to last post
    BXavier52

    Batterie pour Z10

    Bonjour, la batterie MPJ de 5000mAh fonctionne-t-elle correctement ? vous avez un Z10-LTE compatible 4G ou la version Z10 compatible 3G ? Sur leur site,

    BXavier52 09-18-2014, 11:57 AM Go to last post
    Smiley88

    Toysoft Productivity Tools Fire Sale

    BlackBerry World is running a promotion for Indosat, EMEA and LATAM countries and I'm opening it up to the rest of the world. The promotion will start

    Smiley88 09-18-2014, 08:25 AM Go to last post
    serversurfer

    Wallpaper for Passport available?

    You will find the links to my host (complete sets, regulary extended) in german blogs (my native soil):

    Starter Kit Passport Wallpaper

    serversurfer 09-18-2014, 02:53 AM Go to last post
    ThomasWillNot

    BlackBerry Synchronization Issue

    Hi,

    I am trying to get my calendar all synchronized between my BlackBerry and computer.

    I did have it working between my BlackBerry

    ThomasWillNot 09-17-2014, 01:34 PM Go to last post
  • Sponsored Ad