Eu consigo receber meu serviço no navegador, porém no celular ele não recebe o serviço
Esse é meu script pra trazer o serviço
function carrega(){
$(document).ready(function(){
$('#btnsend').click(function(){
$.ajax({
type: 'POST'
//Caminho do WebService + / + nome do metodo
, url: "http://dev.meuteste.com.br/teste/Service1.asmx/SeuNome"
, contentType: 'application/json; charset=utf-8'
, dataType: 'json'
, crossDomain: true
//Abaixo adicione as variáveis caso haja alguma.
, success: function (data) {
//Caso não ocorra nenhum tipo de erro:
$('.Nome').html("<p>" + data.d + "</p>");
},
error: function (err) {
//Caso ocorra algum erro:
alert("error");
}
});
});
return false;
});}
esse eh minha index
<body>
<body onload="carrega()">
<p>Meu Primeiro Aplicativo Mobile/Teste/</p>
<br />
<br />
<input type="button" value="send" id="btnsend"></input>
<div class="Nome">Apareça aki:</div>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/teste.js"></script>
<script src="//code.jquery.com/jquery-1.12.0.min.js"></script>
</body>
o config.xml
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.example.hello2" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>HelloWorld2</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="dev@cordova.apache.org" href="http://cordova.io">
Apache Cordova Team
</author>
<content src="index.html" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
</widget>