-
Notifications
You must be signed in to change notification settings - Fork 257
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
Make it work on (managed) iPads #1772
Comments
Such an interesting use-case @zu! I would love to find a way to make it work. I have a few questions:
My assumption is that the app would actually be an HTML file. @ellatrix explored a self-contained version of Playground loaded from a local HTML file with no service workers. Every resource was loaded via data URLs. The same approach could work here. Or were you thinking about another way of delivering an app? |
Hi Adam
It might only be possible via an app (that needs to go through the approval process. :-( ) Anyway playground and blocknotes look very promising and it seems we're not far from a native WordPress app running on iPad. Looking forward to it and of course I'm ready to test and try out whatever comes my way. Thank you so much for playground! Even when I'm not yet able to use it exactly how I dream, it's almost unbelievable that I'm even dreaming that far. |
Thank you for all those details @zu! If you have the worldwideweb app installed, it might actually do exactly what we need. It seems to be starting a local web server – I can see You can check that by downloading the artifact from https://github.com/WordPress/wordpress-playground/actions/runs/11029849670, doing a manual search and replace from LMK what you find out!
That's my hope, too! Technically it's already possible to do that so we're one eager contributor away from having it :) |
Thanks Adam, it sounds really promising. I'll let you know what I find out as soon as possible. As for now, the worldwideweb app is not on the managed iPads but I'm optimistic that I'll get a generic WordPress app (or a "private/specific WordPress app" whitelisted and available for us. |
Hi Adam, I'm not quiet getting it yet. You say "downloading the artifact" but I'm not sure how to do it. Do I download the whole repo? I did, replaced "https://playground.wordpress.net" with the URL of the local server that pointed to the folder "dist > packages > playground > wasm-wordpress-net" but that didn't work. The error was: ERR_TUNNEL_CONNECTION_FAILED (on Edge, in Chrome I get a blank, black page and an error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'addEventListener') in the console) In Firefox I get a similar error than in Chrome. This is on a MacBook Pro, not on an iPad yet. I also tried on a (not managed iPad). I defined "On my iPad > WP > wordpress-playground-trunk > packages > playground > website" as root for the "worldwideweb - mobile" App webserver. It didn't show anything. Trying to opening the site in Safari (which is possible from within the "worldwideweb - mobile" App" led to an error message tha Safari couldn't connect to the server. I think, i have the correct local path but since I can't see the source, I'm not sure, where the error could be :-( |
Hey @zu, I have some instructions that might help you. Please let me know if you have more questions. Here is a link to the latest version of the Playground website. A way to get to the latest version of Playground you can go the Deploy to playground.wordpress.net job. Inside that zip you will have a dist > packages > playground > wasm-wordpress-net folder containing the website. |
Thanks @bgrgicak for the help and clarification. That makes a lot of sense. I can't test ist for the next few days as I don't have access to an iPad, but I'll let you know the results as soon as I have them. I see some potential difficulties with http vs https but let's wait and see. Thanks again for your kind support. |
I was able to test it by now and it "almost worked" as you can see on the screenshots. It never went further than "Preparing WordPress...". The Log didn't show anything: As it's not my iPad I can't buy the full version of the WorldWide Web app and can't use the secure context for now (which was used for this test). Without the "secure context, I only get a black screen or in Safari a message that the connection to the server is not possible. I should receive a test iPad shortly and will try further than. |
Thanks for the update, @zu!
That sounds good. We'll wait to hear from you. |
Note that |
@zu if you were able to connect that iPad to mac, you might be able to get the full debug output from Safari devtools, see https://stackoverflow.com/questions/77768197/how-to-debug-safari-web-apps-on-mac |
Thanks Adam for your quick answer. I was able to connect that iPad to my MacBook but couldn't get more information. (I can't use the localhost secure context from the free version) When I'll get my test iPad, I'll try again (with the full version of worldwideweb - mobile app) |
Managed iPads (as we use them in prison, where restrictions apply, obviously) are an interesting scenario.
As a WordPress teacher and teacher in prison I want to teach participants how to create a website so they can prepare a website for the time after their imprisonment.
Managed iPads are ordinary iPads but are integrated with a device management system which allows to set restrictions, remote control certain features etc.
In our case and as a common scenario that means:
In my case that means:
In my understanding a realistic scenario could be a selfcontained app.
Not a pwa that needs to load external sources but an app that runs in a webview or safari on iPad.
To make it persisitent a zip file should contain everything or be able to get everything from within the app (even on another device) and there should be no need to load anything from outside the app.
I hope, I could describe the requirements comprehensible.
I also understand that it's a special case but I'm sure it would be a great step to "democratize publishing" that will be usable in other contexts as prison as well.
Let me know if you need further information.
Also, thanks to @adamziel for encouraging me to open this issue.
The text was updated successfully, but these errors were encountered: