流星登录无法在手机上运行 [英] Meteor login not working on mobile

查看:129
本文介绍了流星登录无法在手机上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个简单的移动Web应用程序,但无法登录...

I am working on a simple mobile web app and I am having trouble logging in...

我遵循了这个小示例来进行自定义登录:

I followed this little sample on making a custom login: http://blog.benmcmahen.com/post/41741539120/building-a-customized-accounts-ui-for-meteor

这里没有什么棘手的问题.

Nothing too tricky here.

所以我在本地运行流星服务器.在计算机上,通过浏览器,我可以登录并创建帐户-没问题.

So I run my meteor server locally. On my computer, through the browser, I can log in and create accounts -- no problem.

当我从iPhone转到本地IP时,网站成功加载,但是由于某种原因,我无法登录或创建帐户.

When I go to my local IP from my iPhone, the website successfully loads but for some reason I am not able to login or create accounts.

我注意到,对于Meteor.loginWithPasswordMeteor.createUser,永远不会调用回调函数.我已经{{loggingIn}}呈现了一个加载屏幕,并且在重新加载表单之前,加载屏幕仅存在了不到一秒钟的时间.没有引发任何错误(验证通过并且回调函数不会失败).

I have noticed that for Meteor.loginWithPassword and Meteor.createUser, the callback function NEVER gets called. I have {{loggingIn}} rendering a loading screen and the loading screen is only there for a fraction of a second before the form is reloaded. No errors are thrown (validation passes and the callback function doesnt fail).

出于怀疑,我部署了该应用程序,并尝试通过手机访问已部署的网站,并且同样的问题仍然存在...

Out of suspicion, I deployed the app and tried accessing the deployed website from my phone and the same issue persists...

有什么想法可以在我的iPhone上无法登录或创建帐户,但是可以在我的计算机上吗?也许是饼干的事?有什么办法解决这个问题?

Any ideas what I cannot log in or create accounts on my iPhone, but I can on my computer? Maybe its a cookies thing? Any ways of solving this?

非常感谢

聊天

这在我的桌面浏览器和iPhone模拟器上均可使用.只是不是我的iPhone.可能只是本地网络问题? -不,即使我部署了网站,我仍然遇到相同的问题...

This works on both my desktop browser and iPhone simulator. Just not my iPhone. Could it just be a local network issue? -- No, even if I deploy the website, I have the same issues...

此外,请查看我的有关重新创建问题的github帖子: https://github.com/ccorcos/meteorPasswordMobileError

Also, check out my github post about recreating the issue: https://github.com/ccorcos/meteorPasswordMobileError

推荐答案

进行检查,以确保在要测试的所有设备上都运行相同版本的iOS.使用Meteor应用程序时,我发现iOS 7行为异常. iOS 6可以正常工作.

Check to make sure that you are running the same version of iOS on all the devices you are testing on. I have seen iOS 7 misbehave when using Meteor apps. iOS 6 works just fine.

这篇关于流星登录无法在手机上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆