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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Adobe AIR Development

Reply
Contributor
mehrozetkxel
Posts: 22
Registered: ‎08-02-2011
My Carrier: developer
Accepted Solution

Device Pin Showing Null when the Blackberry playbook tablet App is signed

I am developing an application for Blackberry playbook in action script. I have signed the application (Release build) and deployed it on the device but the device pin is showing null. When i run the app directly from flash builder it is showing correctly.  

 I have added the permissions to configuration file, it is showing the device pin but after it is signed for release it shows null.

Please let me know why it is happening.

Please use plain text.
Developer
peter9477
Posts: 5,617
Registered: ‎12-08-2010
My Carrier: none

Re: Device Pin Showing Null when the Blackberry playbook tablet App is signed

The device doesn't actually read the configuration file to find those permissions, so you have to check the actual place where it looks. 

 

Extract your .bar file contents and look in META-INF/MANIFEST.MF.  

 

Look for the row that starts with "Entry-Point-User-Actions:" and make sure the read_device_identifying_information permission appears there.

 

If it doesn't, that explains your symptoms.  Now you just need to find the source of the problem, which is that your config file contents aren't being used properly during packaging.


Peter Hansen -- (PlayBook 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
peter9477
Posts: 5,617
Registered: ‎12-08-2010
My Carrier: none

Re: Device Pin Showing Null when the Blackberry playbook tablet App is signed

(My response was based on the assumption that by "null" you meant it was showing a 0 value. If you meant something else, it's possible there's a problem other than what I described.)

Peter Hansen -- (PlayBook 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
jtegen
Posts: 6,145
Registered: ‎10-27-2010
My Carrier: AT&T

Re: Device Pin Showing Null when the Blackberry playbook tablet App is signed

Do you have the permission to read the device pin? In the BB xml file?
Please use plain text.
Contributor
mehrozetkxel
Posts: 22
Registered: ‎08-02-2011
My Carrier: developer

Re: Device Pin Showing Null when the Blackberry playbook tablet App is signed

it is not showing 0 , its showing null and .xml file contains the permission of device pin

Can u let me know where i can find that MANIFEST file and how i can edit it with device reading permission

Please use plain text.
Developer
RottenOgre
Posts: 274
Registered: ‎11-01-2010
My Carrier: WiFi

Re: Device Pin Showing Null when the Blackberry playbook tablet App is signed

The MANIFEST is in your BAR package. Just open the BAR with any program that can read ZIP files.

Please use plain text.
Contributor
mehrozetkxel
Posts: 22
Registered: ‎08-02-2011
My Carrier: developer

Re: Device Pin Showing Null when the Blackberry playbook tablet App is signed

[ Edited ]

I have extracted  my .bar file contents and looked in META-INF/MANIFEST.MF.  

 

I have looked for the row that starts with "Entry-Point-User-Actions:" and but the read_device_identifying_information permission is not there.

What can i do now ? how can i make this appear on the bar file.

Is there some other location other than blackberry-tablet.xml where i need to add this permission ?

Please use plain text.
Developer
Acenet
Posts: 248
Registered: ‎11-02-2010
My Carrier: -

Re: Device Pin Showing Null when the Blackberry playbook tablet App is signed

Hello,

  normally you just have to update the BB.xml file...

If somehow, the file inside your .bar file is not the one you edit (I put this file in the root directory of my project), then you can try the package option in FB (I suppose you use FB): When creating the bar file, open tab "permissions", and select the permission you want to include.

JC
Please use plain text.
Contributor
mehrozetkxel
Posts: 22
Registered: ‎08-02-2011
My Carrier: developer

Re: Device Pin Showing Null when the Blackberry playbook tablet App is signed

Thanks everyone i have solved the problem. Actually there were 2 BB.xml file in my project, one containing the access permission of device pin and the other didnt contain that permission. I removed the redundant .xml file and every thing went fine Thanks for help guys Appreciated

 

:Punk:

Please use plain text.
Developer
jtegen
Posts: 6,145
Registered: ‎10-27-2010
My Carrier: AT&T

Re: Device Pin Showing Null when the Blackberry playbook tablet App is signed

Of the same name in two different directories or different file names in the same directory?
Please use plain text.