Show local webpage in Xamarin.Forms WebView

A local webpage extracted from an online webpage that runs on HTML, CSS and JavaScript.

Complex layouts and functions are often a problem in Xamarin.Forms … but they are great when they finally work 😇
  • The webpage is running on HTML, CSS and JavaScript and executing custom code. We didn’t want to rewrite it in parallel in the web and the app, but to reuse the code.
  • The webview is not easy to understand, because it’s cross-plattform but uses the native controls on each. It was hard to get it working on Android, but I didn’t make it on iOS.
When the files are copied to [CacheDirectory]/Resources/AckerMap I set this directory as the base for the webview to search the other files referenced.
From Github
Install the tool over NPM
Just specify the base html file of your webpage and the output file.
And the output tells me everything is alright :-)

--

--

I’m a software developer from bavaria, germany. I like to try out and learn new things, especially about software architecture.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Gabriel Weidmann

I’m a software developer from bavaria, germany. I like to try out and learn new things, especially about software architecture.