Closed onato closed 7 years ago
Feels like #27 ?
Indeed, thanks.
…since this framework is tightly coupled to a web server using Turbolinks, I don't think it would make sense…
I would be interested to know what is…
tightly coupled to a web server using Turbolinks
From what I can see, the use of one webview might be the issue? It seems that Turbolinks restores the webview to its previous state when we revisit a page.
Sorry for leaving this open for months. All the internal APIs are built around Turbolinks.js, from the JavaScript adapter we inject into the page, to the restoration behavior as you mentioned, as well as all the events we listen to to know when a page was loaded/rendered/etc.
It's definitely possible that we could separate the two by having a generic Turbolinks-like protocol that other frameworks could adopt and reuse the single WebView behavior, but it's would be very low on our list, since we're only using Turbolinks.js for our apps currently.
I am looking at adopting Turbolinks for future projects. I have a couple of existing apps, however, that are not yet updated to use Turbolinks. I notice that at present
WebView.js
relies onTurbolinks.controller
. I managed to get a page of a non-turbolinks web-app to load by stubbing out Turbolinks.Does it make sense to try and get turbolinks-ios working with a non-turbolinks web app or is this going to painful?