Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't seem to work with Android's web browser (tested in the emulator) #12

Closed
chadlung opened this issue Mar 16, 2011 · 5 comments
Closed

Comments

@chadlung
Copy link

I just published a blog article where I built a simple chat application using NowJS and JQuery Mobile. I noticed it worked fine in Chrome and Firefox but doesn't work in the Android Web Browser (emulator). I then tried the example code from the nowjs repository and that didn't work either in the Android emulator (the initial prompt never shows up). I think this is tied into how the now.js file is sent (based upon warnings from Chrome) but I'm not sure.

You can see the code I used for the chat demo here: http://www.giantflyingsaucer.com/blog/?p=2535

Chad Lung

@ericz
Copy link
Contributor

ericz commented Mar 16, 2011

Hey Chad,

We're looking into this, thanks!

@chadlung
Copy link
Author

Update: I've now tried the example code as well as my own code on an actual Droid X (not the emulator) and I get the same issue. One of the warnings I see is:
"Resource interpreted as Script but transferred with MIME type text/plain."

  • not sure if it would affect this or not.

@ericz
Copy link
Contributor

ericz commented Mar 17, 2011

Hey Chad,

We just tried it on a Android 2.1 emulator and a physical Android 2.2 Motorola Droid. Both devices showed the prompt and seemed to work fine for the chat demo.

Can you make sure you are on the latest version available in npm? We have recently fixed a bug that caused similar symptoms in Safari. We're not sure if that issue also existed on Android; regardless the new version may make a difference.

If you are already using the latest version, would you mind sharing the exact code you're running that triggers the failure?

Thanks,
Eric

@chadlung
Copy link
Author

Ok I've done some more work on this. I'm using NowJS version 0.2.3. I got it working finally and what I had to do was change the path for the Now.js file to this (in the HTML file):

script src="nowjs/now.js"

I had it originally set to the IP address of my Ubuntu machine and it would work on Chrome or Firefox from another machine but not on Android. I made the path change and now it works on everything. You can close this issue if you want, thanks for the help.

Chad Lung

@ericz
Copy link
Contributor

ericz commented Mar 18, 2011

Thanks for the bug report Chad!

@ericz ericz closed this as completed Mar 18, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants