-
-
Notifications
You must be signed in to change notification settings - Fork 38
iPad 2/3 compatibility #47
Comments
old information < v2.8Source changes for reference Limitations Supported browser for v2.3 and newer can be found here: Initial Issue and explaination
Final decission
Ready to use packages
|
Ready to use packages Based on: https://github.com/andi34/photobooth/commits/860070261a80da2e1ebe4b681a358aac9c853ac5 Includes new options from v2.4.0 |
Ready to use packages
|
Ready to use packages
New options
Bugfixes
General changes
|
Ready to use packages
|
Ready to use packages
|
Someone able to test the following package while accessing Photobooth from ipad2? |
I'm on it - anything particular you want me to pay attention to ? btw happy to help maintain this package, let me know how I can help more. |
@jacques42 Would be good to know if it works without issues. If yes we can skip the seperate branch and use one main branch again :) it's based on https://github.com/andi34/photobooth/commits/add-build-pipeline Andreas Remdt added a transpiler :) |
@andi34 it's not working out of the box. Text content / translations do not show, In buttons I see empty text fields . On the admin screen I get to see the component text placeholder name (again, not even english). I may be wrong but looks like as if the Translator class crashes on iPad2. I will do some debugging and see if I can find out what's going on. |
@jacques42 thanks for testing! |
@jacques42 you can also join https://t.me/PhotoboothGroup if you like to talk about the issue. |
I found that Safari 9 throws the following error from
After a bit of digging, it looks to me that the root cause may be iOS 9 / Safari 9 did not yet implement the fetch() API (Fetch API compatibility matrix) There is a polyfill available that from a very first glance could be a solution to backwards compatibility - fetch The best way I found to debug iPad2 in the Photobooth is actually via USB connected to the Pi it self, and using the instructions right here: remotedebug-ios-webkit-adapter |
Another one to test which hopefully fixes it |
@andi34 @andreasremdt I've tested the whatwg-fetch polyfill in I found one more small thing to be adjusted, in order to make it work with Photobooth on iPad2. There seems to be an Javascript ES6 TypeError in Safari & IE when iterating over a NodeList object using
which then made Photobooth translations work perfectly well on iPad2. I tried to provide a simple PR but was not able to find the repo / branch where the backward compatible code base resides which is included in the snapshot (i.e. no more use of arrow function). If you are ok to take it from here would be great or let me know where to look and I am happy to provide a PR for this change. Once more thanks for all the support and your willingness to go beyond, and to make it work. |
Hey @jacques42, thanks for the interesting feedback. Indeed, iterating over a NodeList using |
Yeay - works like a charme 🥇 thank you so much for going that extra mile ! There is two small changes please to be considered - have a look at commit 0e9415e77be6e558116c6d02510fd769b45c8e98 First change is to make translations also work on the admin page - adjusted URL to the whatwg-fetch polyfill module On the second change, interestingly with changing the default URL references for the background picture, that background picture does load on my iPad2 very nicely. However and to my surprise it does not load on my desktop (Firefox, Chrome). Desktop browsers don't throw an error on the console but also don't show the background picture. Not sure what's going on there. |
Thanks for the finding! |
Fixed the whatwg-fetch path also on other pages: |
neues update, "whatwg-fetch" auf version 3.4.0 upgedated. |
https://github.com/andi34/photobooth/releases/tag/v2.8.0
Is your feature request related to a problem? Please describe.
Safari Browser on iOS 9 in not compatible with es6.
Using transpiled JavaScript which enables support for Safari 9 - will be added to stable release on v2.8.0
Ready to use package
photobooth-SNAPSHOT.20200808205436739.zip
Update Photobooth
There's 2 ways:
If you have installed Photobooth via git:
Open a Terminal and navigate into your installation folder, by default /var/www/html:
cd /var/www/html
Now fetch latest source and checkout:
Update submodules and build the css files:
Once that's done you're ready
exit
Using a ready to use package:
Download and extract the package (needs to be a own folder) and open a terminal from that path. Now type the following to update:
sudo bash update-booth.sh --path="/var/www/html"
(Adjust path if needed)
Done :)
The text was updated successfully, but these errors were encountered: