Giter Site home page Giter Site logo

Safari Mobile Bug about webiopi HOT 17 CLOSED

iamdual avatar iamdual commented on July 19, 2024
Safari Mobile Bug

from webiopi.

Comments (17)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
[deleted comment]

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
[deleted comment]

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
Tested with an iPhone 4 on iOS 6 and I cannot reproduce the bug

Original comment by [email protected] on 10 Dec 2012 at 8:05

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
I can confirm this. Tested with an iPhone 4S on iOS 6.1.

Original comment by [email protected] on 12 Dec 2012 at 8:12

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
I can also confirm there is a problem with iPhone 5 and iPad 3 running IOS 6.1. 
 However it works fine with iPhone 3G IOS 4.1.
It looks to me like a timing issue where an update of the pin state clashes 
with the change pin state request from safari. The appearance is, you tap the 
pin and it briefly changes colour then is reset within a second without 
affecting the IO port.

Original comment by [email protected] on 17 Dec 2012 at 5:22

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
Need some javascript console error log.
Cannot reproduce it on my side :
Works on iPhone [email protected] and Safari 6.0.6

Original comment by [email protected] on 20 Dec 2012 at 10:41

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
iPhone 5 does not work. The pin states changes then rests to off with no action 
taken. 

Using Chrome on iPhone 5 the functions work correctly.

Original comment by [email protected] on 4 Jan 2013 at 2:46

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
Hi. This seems to be a Mobile-Safari-only bug. When you change a pin state it 
goes back to what it was before.

I activated debugging and checked the mobile javascript console but there is no 
error output.
Actually, checking the page requests from the inspector shows that the POST 
requests with the new values are sent successfully and they even get a response 
from the server with the new current value, as if it had changed. I mean, the 
server is responding as if it changed the value, but in fact nothing happened.

However, on Chrome for iOS, as mentioned above, works fine.

My guess... Is there anything on the server-side, in the http code, that 
verifies the agent from the POST requests? Because, if I am not mistaken, 
Chrome for iOS uses Mobile Safari's engine to render the pages, so if it was a 
Javascript problem, this would happen on both browsers.

Thanks!

Original comment by macecchi on 11 Jan 2013 at 9:41

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
If you got it working with other browser, this is not a server issue.
There is no agent filtering (not yet)
Do you have plugged something on the GPIO like a LED to see if the output has 
changed ?

You may try to start webiopi in a teminal to see if there is error
to stop existing webiopi service :
sudo /etc/init.d/webiopi stop
then to start webiopi foreground :
sudo python -m webiopi

Original comment by [email protected] on 11 Jan 2013 at 9:48

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
I can confirm that this issue exists (running iPhone 5 ios6.0.2), would very 
much appreciate if anyone could come up with a solution other than using chrome.
Im willing to help if need help testing or such.


Original comment by [email protected] on 14 Jan 2013 at 11:41

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
You may try to start webiopi in a teminal to see if there is error
to stop existing webiopi service :
sudo /etc/init.d/webiopi stop
then to start webiopi foreground :
sudo python -m webiopi

On my side it works fine on Safari Mobile with an iPhone 4 on iOS6.
I think I need an iPhone 5 to try it out...

Original comment by [email protected] on 14 Jan 2013 at 4:58

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
I tried running it in foreground but no messages shown in the log.

Original comment by [email protected] on 14 Jan 2013 at 11:38

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
I found this thread on SO that seems to be quite relevant to this issue.
http://stackoverflow.com/questions/12506897/is-safari-on-ios-6-caching-ajax-resu
lts

Original comment by [email protected] on 26 Jan 2013 at 10:16

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
Very nice post, thanks.
I just made some changes on the trunk to add the cache control header.
Can you checkout sources, install and give a try ?

Original comment by [email protected] on 27 Jan 2013 at 12:52

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024

Original comment by [email protected] on 27 Jan 2013 at 10:16

  • Changed state: Started

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
That seems to do the trick! The sample index.html works like a charm.
At first my own page didn't work but after resetting safari it's working aswell.

Thank you for a your fast feedback! great job with the project! 

Original comment by [email protected] on 27 Jan 2013 at 2:46

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
thanks for feedback, I close the issue so.
the fix will be included in the next release.


Original comment by [email protected] on 27 Jan 2013 at 2:55

  • Changed state: Fixed

from webiopi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.