parse.com获取状态404 [英] parse.com getting status 404
问题描述
我想使用的解析离子,
我的code是干什么用的离子登录表单。
问题是,当我在Chrome测试所有工作correclt。
但是当我在Android测试我得到的错误,当我打电话
I am trying to use parse for ionic, my code is doing login form with ionic. the issue that when I am testing on chrome all is working correclt. but when I am testing on android I am getting error, when I call
Parse.User.logIn
Parse.User.logIn
code:100消息:XMLHtt prequest失败:{状态文本:不
发现,状态:404 ....
code: 100 message: "XMLHttpRequest failed: {"statusText":"Not Found","status":404....
我的code是:
login: function (user) {
Parse.User.logIn(user.email, user.password, {
success: function (user) {
// Do stuff after successful login.
$rootScope.$broadcast('event:auth-loginConfirmed');
},
error: function (user, error) {
// The login failed. Check error to see why.
$rootScope.$broadcast('event:auth-login-failed',error);
}
});
从网络:
https://api.parse.com/1/login 404(未找到)
推荐答案
这似乎是同样的老问题与白名单。结果
尝试添加白名单插件:
It seems like the same old problem with the white-list.
Try to add the white-list plugin:
cordova plugin add cordova-plugin-whitelist
这<一个href=\"http://stackoverflow.com/questions/30288059/ionic-framework-android-emulator-unable-to-access-services-on-host-machine/30290701#30290701\">article可能会帮助你。
这篇关于parse.com获取状态404的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!