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

BlackBerry® Z10


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Visitor
Posts: 1
Registered: ‎02-14-2013
My Device: STL100-2
My Carrier: SMC

Contact API not working at Blackberry 10

I am getting a “Library cannot be found” error when trying to get contact information using blackberry.pim.contacts API via WebWorks at Blackberry 10. What could be the cause?

 

When access blackberry.pim.contacts, a JavaScript Alert is prompted with the following message: Require Error Can't find /usr/lib/webplatform/plugins/jnext/libpimcontacts.so Library cannot be found

 

The version of applied WebWorks sdk is 1.0.4.11

 

The sample code used as follow:

 

var contacts = blackberry.pim.contacts;

var contact = blackberry.pim.contacts.getContact("1");

 

The below permission and feature configs are included in

 

  <rimSmiley Tongueermissions>

 <rimSmiley Tongueermit>access_pimdomain_contacts</rimSmiley Tongueermit>

  </rimSmiley Tongueermissions>

  <feature id="blackberry.pim.contacts"  required="true" version="1.0.0.0"/>

 

And the webworks script tag is included in index.html as well

<script src="local:///chrome/webworks.js" type="text/javascript"></script>

<script type="text/javascript" src="local://supportforums.blackberry.com/chrome/webworks.js"></script>