我正在使用使用angularjs的Monaca Clude IDE部署移动应用程序
我使用https请求获取我的数据连接到其他域中存在的Restful API
预览模拟器每件事情都很顺利
但是当我在我的Android手机上运行该应用程序时,应用程序无法从https网址获取数据
编辑:我添加了此代码
function getUsernamePassword(username, password){
return $http({
method: 'GET',
url: "https://xxx.xxx.xxx.xxx:8444/api/checkPassword/" + username+"/"+password
}).then(function successCallback(response) {
return response;
}, function errorCallback(response) {
console.log('login faield');
});
}