script-lab icon indicating copy to clipboard operation
script-lab copied to clipboard

Consider supporting iOS (iPad)

Open Zlatkovsky opened this issue 7 years ago • 5 comments

Mostly, it should "just work". Unless it really doesn't due to the iframe localStorage issue, in which case we'd need to think more about it (but longer-term, maybe we could use web sockets as a communication mechanism?)

See related issue https://github.com/OfficeDev/script-lab-2017/issues/734

The only unknown is whether the heartbeat refresh would work. But even if it doesn't, could just disable it and use regular refresh button on ios.

Zlatkovsky avatar Oct 02 '18 19:10 Zlatkovsky

Emailed Eco team. Labeling as initially a non-coding task, since we first just need to catalog what does or doesn't work.

Zlatkovsky avatar Dec 31 '18 20:12 Zlatkovsky

The runner does not work due to the iframe localStorage issue. Still need to get an answer for whether we can do anything about at the platform level (e.g., set the flag on the webkit control the way we do on Mac), of if it's not something we have control over.

If it’s the latter, the only way to make Script Lab work on iOS would be to always force a redirect via the main Editor domain. This would be non-trivial (now that I think about it, probably 1-2 weeks of work), esp. seeing that our runner is no longer a server and is instead just a regular site. The best I can come up with would involve setting up a communication pipeline via the server and having to become stateful (e.g., start on editor domain, post to server to have a short-term copy of the code made, then retrieve from the runner’s domain via the server). Either that, or go the websocket route (and essentially expose only the runner on iOS, and have you edit the snippets on another computer on in the web browser to do a side-by-side-like experience).

Zlatkovsky avatar Feb 25 '19 21:02 Zlatkovsky

It sounds like if it's going to be a Script Lab workaround for iOS, it will be prohibitively expensive to do. On the other hand, if it's a platform workaround that we can do, then it will effectively "just work" -- and all that we'll have left to do is ask the Store team to list SL for iOS as well.

Zlatkovsky avatar Feb 25 '19 21:02 Zlatkovsky

Assigning to @JuaneloJuanelo to track this issue (for the platform follow-up, and to contact the Store team once we're ready)

Zlatkovsky avatar Feb 25 '19 21:02 Zlatkovsky

Hi, I hope to test our new Word JavaScript APIs on iOS devices. Is Script Lab currently supported on iPad? If not, is there a workaround to enable it? Thanks for your help!

GavinGu07 avatar Sep 01 '22 06:09 GavinGu07