idcrook / shairport-sync-mqtt-display

Display currently playing info, with remote control, using shairport-sync's MQTT support
MIT License
31 stars 6 forks source link

python-flask-socketio-server webpage info doesn't update on iOS 9 device #2

Closed idcrook closed 5 years ago

idcrook commented 5 years ago

an iPad 3 running Mobile Safari (9.0?) from iOS 9.3.5 is not updating the info.

likely socket.io version related? something to note: websockets is listed as supported since Mobile Safari 6 : https://caniuse.com/#feat=websockets

jquery should work. don't think any ES6 stuff will though, so possible that minor changes in app's current will allow it to

idcrook commented 5 years ago

Hooked up the iPad to macOS host and opened Web Inspector to debug iOS Safari. there were two issues, both related to ECMAScript support.

  1. let keyword is not support in Safari
    • changed to var since the scoping part of let was not required
  2. String.padLeft() is ES6 addition
    • added pad() function that supports .padLeft() functionality

After these two changes it works on iOS 9 Mobile Safari

idcrook commented 5 years ago

PR #3 has it now working on iPad 3 and Mobile Safari