Github user maheshravva commented on the pull request:
https://github.com/apache/cordova-plugin-contacts/pull/78#issuecomment-147021456
I am trying to pull the native contacts and copy the selected contact
information to a MySQL database using jQuery Ajax call. Contact information is
sent in JSON format. But when the Ajax call is triggered, I get an error as
below
D/ContactsAccessor: Could not find contact with ID
E/Web Console: Uncaught RangeError: Maximum call stack size exceeded
at file:///android_asset/www/cordova.js:1861
I am running the application on Genymotion Emulator and using AndroidStudio
IDE. Below is my jQuery snippet
//sample JSON data
//native_contact_full_details =
'{"displayName":"V","name":{"formatted":"V
","givenName":"V"},"nickname":null,"phoneNumbers":null,"emails":null,"addresses":null,"ims":null,"organizations":null,"birthday":null,"note":null,"photos":null,"categories":null,"urls":null,"username":"john.doe","password":"johndoe","idProfile":1,"idSubscriber":"1"}';
//console.log(JSON.stringify(native_contact_full_details));
$.ajax({
url: "http://domain/test",
type: "POST",
data: native_contact_full_details,
success: function( json ) {
alert('Success');
},
error: function( xhr, status, errorThrown ) {
alert( "Sorry, there was a problem in your xhr" );
console.log( "Error: " + errorThrown );
console.log( "Status: " + status );
},
complete: function( xhr, status ) {
console.log( "The request is complete!" );
}
});
Can anyone help me or suggest in resolving the issue?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]