You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Benjamin Hill (JIRA)" <ji...@apache.org> on 2013/01/06 23:28:12 UTC
[jira] [Created] (CB-2161) Search for contacts "freezes" until home
button pressed in 6.1 simulator
Benjamin Hill created CB-2161:
---------------------------------
Summary: Search for contacts "freezes" until home button pressed in 6.1 simulator
Key: CB-2161
URL: https://issues.apache.org/jira/browse/CB-2161
Project: Apache Cordova
Issue Type: Bug
Components: iOS
Affects Versions: 2.3.0
Environment: OSX 10.8.2, Xcode 4.6 DP4, iOS iPhone Simulator 6.1
Latest 2.3.0 from github.com/apache/cordova-ios
Reporter: Benjamin Hill
Assignee: Shazron Abdullah
I am trying a basic search for contacts.
{code:JavaScript}
var app = {
onFindResult: function(contacts) {
console.log('Found contacts:' + contacts.length);
//...
},
onDeviceReady: function() {
console.log('onDeviceReady');
navigator.contacts.find(["displayName", "name"], app.onFindResult, app.onError);
console.log('started searching for contacts.');
}
}
{code}
But, it freezes and only calls the "onFindResult" when I press the "home" button.
2013-01-06 14:18:31.192 ArchiveContacts[12090:c07] [LOG] onDeviceReady
2013-01-06 14:18:31.193 ArchiveContacts[12090:c07] [LOG] started searching for contacts.
(Freezes here until I press the Home button)
2013-01-06 14:19:30.245 ArchiveContacts[12090:c07] [LOG] Found contacts:0
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira