I'm developing an app using jquery mobile
and phonegap
.
Question: Why when I test the application in 'phonegap serve'
of node.js
it works and when I download apk
created by Buil Phonegap
no?
Example: if I try to communicate with an external database ( mysql
) via the phonegap it works, but not by apk.
My query code is:
$(document).on('click', '#envcep', function() {
var cep1 = $("#cep").val();
var n = cep1.length;
if (n < 8) {
$("#mesg").text("CEP incompleto.");
$("#dialog2").popup('open');
return true;
} else {
var data = $("#app").serialize();
$.ajax
({
type: "POST",
url: "http://meuwebsite.com.br/aplicativo/cep.php",
data: data,
cache: false,
success:
function(resposta) {...
Detail: my config.xml already has: access origin="*" access origin="http://mysite.com"
Where would the error be? What would be the difference between testing an application with the phonegap service and the apk generated by the phonegap build?
Thank you !!