realm / realm-tasks

To Do app built with Realm, inspired by Clear for iOS
Other
369 stars 71 forks source link

Login does not work in the iOS app #401

Closed radu-tutueanu closed 6 years ago

radu-tutueanu commented 7 years ago

Building the latest master and using the iOS simulator, the app claims it cannot connect to the server when you try to login. If you downgrade RealmLoginKit to 0.0.9, the app can connect just fine.

cc @TimOliver @stel

TimOliver commented 7 years ago

Uh-oh. That might be a glitch caused by the PR that added HTTPS support to it.

What was the exact URL that was being provided to the login controller?

radu-tutueanu commented 7 years ago

I'm not entirely sure, my guess is http://${ip}:9080/auth

TimOliver commented 7 years ago

Ahh okay. I discovered the issue and fixed it in https://github.com/realm-demos/realm-loginkit/pull/29

I just pushed the build to CocoaPods (0.0.12), so that should fix this issue. :)

janicechau12 commented 6 years ago

Hi Tim, I tried to sign up and login to your RealmTasks iOS app but I am not able to. It keeps on showing me "Could not connect to server" error message. Please help .. simulator screen shot - iphone 8 plus - 2017-11-04 at 10 52 08

TimOliver commented 6 years ago

Hi @janicechau12! You need to have an instance of Realm Object Server running on your same local machine. Realm Tasks internally generates the IP address of that machine and assumes that is the target server.

I hope that helps!

TimOliver commented 6 years ago

This issue is really old, so if there are any more issues of a similar nature, it might be more appropriate to open a new issue in order to follow the conversation more clearly. Thanks! :)