Tengo el siguiente código que me funciona perfecto entre javascript y php
El problema es que cuando intento usarlo dentro de un proyecto phonegap, da error
Código:
  
He probado tanto en http como en https			$.ajax({
				type: "POST",
				url: "https://www.miweb.com/push/registro.php",
				data: ({regId: data.registrationId}),
				dataType: "text",
				error: function(xhr, status, error) {
					alert(status);
					alert(xhr.responseText);
				},
				success: function(results) { 
					alert(results);
				}
			});
Alguna idea?
 
 

 error json sólo en phonegap
 error json sólo en phonegap 


