hoodiehq-archive / my-first-hoodie

⛔ deprecated
Other
157 stars 35 forks source link

I can't actually sign in on Android devices #64

Closed thomasvs closed 10 years ago

thomasvs commented 10 years ago

I tried this both on my local install and hoodie.ydns.eu

I can click the down arrow, which presents me with the three options, but I cannot actually click Sign In. This makes me sad because I think hoodie is just right for me, but working on Android browsers is absolutely essential. It should make you sad because it's not a good first run experience for people trying out hoodie.

I tested this both on my samsung galaxy s4 google edition (which runs some 4.4 I think) and my Samsung Note 2014 tablet.

@gr2m wanted a ping on this issue.

gr2m commented 10 years ago

First of all, Hoodie as no opinion on UI at all. The problem that the Sign In button doesn't work on Android could be a CSS / UI JS problem. Syncing between Browsers and Android works 100%, we did that in the past for some client work (I can't show that off, I'm afraid).

I think this would be a good time to update https://github.com/hoodiehq/example-mapchat to the latest versions of Hoodie server and setup a Hoodien instance somewhere so other can give it a try.

If you have some JS/Node.js skillz, you should even be able to do it yourself. Let me know if you need any help.

Or alternatively, you could look into the JS code and try to find the bug that breaks the sign in button? As I said, it's not a hoodie.js bug, that I'm pretty sure of

gr2m commented 10 years ago

I went ahead and upgraded it to bootstrap 3, just gotta do it for another project anyway. @zoepage could you please review? @thomasvs can you test with this branch? Maybe the simplest way to go is to [download it as zip], then replace the contents of the www/ folder in your test app with the one of from the downloaded zip. It should work now™

steve21124 commented 10 years ago

good idea to update https://github.com/hoodiehq/example-mapchat to latest hoodie. Currently, I have working local

===== Working Local http://127.0.0.1:6001/_api/_auth/?destroy=true&uri=http://127.0.0.1:6001/_api/_auth&method=login { "method": "login", "requested": 1406055080269, "authenticated": false, "complete": false, "auth_urls": { "facebook": "http://127.0.0.1:6001/_api/_auth/auth/facebook", "twitter": "http://127.0.0.1:6001/_api/_auth/auth/twitter", "google": "http://127.0.0.1:6001/_api/_auth/auth/google" }, "connections": {} } ===== FAILED in hosting http://xxx.nodejitsu.com/_api/_auth/?destroy=true&uri=http://xxx.nodejitsu.com/_api/_auth&method=login ===== Error below {"error":"illegal_database_name","reason":"Name: 'auth'. Only lowercase characters (a-z), digits (0-9), and any of the characters , $, (, ), +, -, and / are allowed. Must begin with a letter."}

======== may be by looking above code, I will know where the problem is

gr2m commented 10 years ago

where does the CouchDB /_auth API come from? That's is not standard CouchDB

steve21124 commented 10 years ago

it is from https://github.com/inator/hoodie-plugin-social. I tract it down to line 131.

    var settings = $.extend({
            attemptLimit:     20,
            interval:         3000,
            authServerUri:    hoodie.baseUrl+'/_api/_auth',
            destroy:          true
        }, options);

Good you mentioned it is not the standard CouchDB. Yes, it is not, it is from hoodie social plugin though it is pretty strange, locally it works. (I still tracking down what is the different between local and jitsu server that make local work but not in server side). Also, I use hoodie angularjs

gr2m commented 10 years ago

This goes a bit off-topic. I'd suggest you create an issue at https://github.com/inator/hoodie-plugin-social/issues then? If you have farther questions regarding the mapchat app, feel free to open an issue on that repo. Cheers!

thomasvs commented 10 years ago

confirmed, update of bootstrap makes it work, thanks!