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

Adobe AIR Development

Reply
New Developer
kalpeshtita
Posts: 12
Registered: ‎11-09-2009
My Device: Not Specified

Unique number for BlackBerry PlayBook like IMEI,PIN ?

Hi all

 

I'm working on my one of the application and want the fetch the unique number if any available like IMEI or PIN ? So if any body know about this PIN number or IMEI number please help me to do this.

 

Thanks

Kalpesh TIta

Please use plain text.
Developer
alopix
Posts: 381
Registered: ‎04-10-2011
My Device: Z10 LE & PlayBook

Re: Unique number for BlackBerry PlayBook like IMEI,PIN ?

The Adobe Air API does not have a native method getting such an ID, but here is a link with an Air-API-workaround.

But maybe there is a native PlayBook-method.

-----------------------------------------------------------------------------
Check out my apps in the BlackBerry World
Visit my developer blogs /dev/alopix and /home/alopix
BBM Channel: C0047B612
Please use plain text.
Developer
TheDarkIn1978
Posts: 409
Registered: ‎12-10-2010
My Device: PlayBook
My Carrier: N/A

Re: Unique number for BlackBerry PlayBook like IMEI,PIN ?

there is no way to obtain a unique device ID using Adobe AIR, but this should help:

 

Unique Device Identifiers on AIR Mobile


PlayBook Applications:
Drop Swatch
Please use plain text.
Developer
ddluk
Posts: 212
Registered: ‎10-02-2010
My Device: Z10 and Z30
My Carrier: Play and Plus

Re: Unique number for BlackBerry PlayBook like IMEI,PIN ?

There is a posibillity to get:

- Hardware ID

- serial number

- PIN

 

so please check before you post wrong informations. All info is written in API:

 

http://www.blackberry.com/developers/docs/airapi/1.0.0/qnx/system/Device.html

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Unique number for BlackBerry PlayBook like IMEI,PIN ?

As @ddluk has said, there are APIs for that.

 

Also note that, as of 1.0.1, you will need to specify an "action" to allow your app to read the PIN or serial number.  The one you want is called read_device_identifying_information.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
TheDarkIn1978
Posts: 409
Registered: ‎12-10-2010
My Device: PlayBook
My Carrier: N/A

Re: Unique number for BlackBerry PlayBook like IMEI,PIN ?

good to know it's available in QNX.  unfortunately that's not a univeral solution for Adobe AIR development as there's nothing available in flash.system.Capabilities to determine a unique hardware identifier.

 

be cautionate if you're attempting to use an identifier to vaidate a application install.  http://android-developers.blogspot.com/2011/03/identifying-app-installations.html


PlayBook Applications:
Drop Swatch
Please use plain text.
Developer
ddluk
Posts: 212
Registered: ‎10-02-2010
My Device: Z10 and Z30
My Carrier: Play and Plus

Re: Unique number for BlackBerry PlayBook like IMEI,PIN ?

Ok. But why you are talking about Android on BlackBerry dev forum? Using this API you get the information you want without problems which are described on site to which you give a link.

Please use plain text.
Developer
TheDarkIn1978
Posts: 409
Registered: ‎12-10-2010
My Device: PlayBook
My Carrier: N/A

Re: Unique number for BlackBerry PlayBook like IMEI,PIN ?

i'm not "talking about Android on a BlackBerry dev forum".  i poste a link that explains why you should not use a unique device ID to validate an application install.


PlayBook Applications:
Drop Swatch
Please use plain text.
Developer
ddluk
Posts: 212
Registered: ‎10-02-2010
My Device: Z10 and Z30
My Carrier: Play and Plus

Re: Unique number for BlackBerry PlayBook like IMEI,PIN ?

You post a link which explains why you should not use unique device ID on ANDROID DEVICES. On Playbook you get what you want, so if you ask for PIN you will get the PIN, not "returns garbage, for example zeros or asterisks."

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Unique number for BlackBerry PlayBook like IMEI,PIN ?

Actually, ddluk, I gotta go with TheDark on this one, as at least one of the article's cautions could apply to any system. 

 

Since the PlayBook serial number certainly "survives a device wipe", assuming it's tied to a particular user would be wrong.

 

In any case, there's certainly room to learn from issues that involve other systems.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.