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

Java Development

Reply
New Developer
Posts: 22
Registered: ‎08-09-2009
My Device: Not Specified

How to get BlackBerry ID programmatically?

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

Trusted Contributor
Posts: 151
Registered: ‎06-17-2010
My Device: Curve 8900
My Carrier: Vodafone

Re: How to get BlackBerry ID programmatically?

You talking about blackberry Development account ID or Blackberry device ID?
--------------------------------------------------------------------
Please mark posts as solved if you found a solution.
Feel free to press the kudos button to thank the user that helped you
Highlighted
Developer
Posts: 467
Registered: ‎07-16-2009
My Device: Z10 LE
My Carrier: Vodafone NL

Re: How to get BlackBerry ID programmatically?

[ Edited ]

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.

Developer
Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.3.2.858, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: How to get BlackBerry ID programmatically?

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.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
Posts: 889
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha
My Carrier: Verizon

Re: How to get BlackBerry ID programmatically?

The payment API lets you get previous purchases, which is a much cleaner way of doing what you are trying to do.


Read my thoughts on BlackBerry Development at news.ebscer.com
New Developer
Posts: 22
Registered: ‎08-09-2009
My Device: Not Specified

Re: How to get BlackBerry ID programmatically?

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

 

 

New Developer
Posts: 22
Registered: ‎08-09-2009
My Device: Not Specified

Re: How to get BlackBerry ID programmatically?

Thanks rcmaniac25, I still need to test if this the same id but this won't work for me as solid solution because not all users choose to do BBM Connection for the app. So it will not work for everyone most likely. But should cover most cases I think.
New Contributor
Posts: 3
Registered: ‎12-22-2013
My Device: 9300
My Carrier: orange

Re: How to get BlackBerry ID programmatically?

Hello,

 

did someone get a response about this problem ?

I succeed to get the email of the owner , but did not succeed get the  the email use for blackberry world .