11-23-2011 11:23 PM
I just found out that AppWorld does not transfer non-consumable virtual goods when user does switch. Even though same blackberry id is used, no exiting purchases found.
As docs say I need to take care of licenses mysel. But here comes the question iis if there is any way to get current BlackBerry Id used by Payment Services.
Anyone knows trick how to get it except of asking the user (which regular user won't answer correctly no most cases)?
-Sergey
11-24-2011 03:01 AM
11-24-2011 04:25 AM - edited 11-24-2011 04:32 AM
He is talking about Blackberry user ID which is used for AppWorld authentification.
I remember that it's availble in BBM SDK but I'm not sure if user can use different accounts fro BBM and AppWorld.
11-26-2011 12:08 AM
I have no experence with the BBM SDK but based on what Eugen said, I downloaded it and looked at the samples and API docs and it seems you need to first create a BBMPlatformApplication. Once you do that you register it and get a BBMPlatformContext. With that you can call
context.getUserProfile().getPPID()
and get a unique ID for the BBM instance that will be the same across different devices. This sounds like a BlackBerry ID but might be a BBM specific ID.
11-26-2011 05:00 PM
The payment API lets you get previous purchases, which is a much cleaner way of doing what you are trying to do.
11-27-2011 10:11 AM
Ebscer, I wish it was that easy.
I was using this approach and then realized that AppWorld does not carry digital goods purchases to the new bb device when user do switch. Tou can get user's previous regulat purchases on new bb but not those for digital goods.
This is actually bad surprise from RIM since this makes most used scheme of free/paid app implementation impossible or at least not that easy as it should be.
Here's what documentation says for License type non-consumable:
You must also make sure that digital goods are still available if the user reinstalls the
application or switches devices. Digital goods aren't automatically restored, so it's up to
you to make sure that users can download these digital goods again
11-27-2011 10:13 AM