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

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

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

 

  <rim:smileytongue:ermissions>

 <rim:smileytongue:ermit>access_pimdomain_contacts</rim:smileytongue:ermit>

  </rim:smileytongue:ermissions>

  <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>