Run an ASP.NET webserver inside a touch device (iOs / Android)

Hi everybody,

we have a customer who wants to develop the user interface using html to have the UI development efforts only once while getting it to work on an iOS, Android devices and windows desktop computers all at once.
But one requirement is that the application still needs to work in an offline scenario, for example when you work from your iPad in an area with bad reception.

Our idea is now to implement it as an ASP.NET web application with a proper ASP.NET webserver thats reachable over the internet but also provide a local in-device fallback ASP.NET webserver in case the device is offline.
The locally collected data should then later be synced to the internet webserver when the device is online again.

Is there a proper working implementation of an ASP.NET webserver that runs on Xamarin iOS and Android Touch?
Ideally using an ASP.ENT MVC stack with Razor views.

I have read about the mono enabled XSP webserver and as far as I could find out most of the MVC assemblies should in gerneral work on Xamarin mono but couldn't find out if this would really work as a whole package.

Thanks for your answer!

Best regards

Florian

Posts

  • ChrisHonselaarChrisHonselaar NLBeta ✭✭✭

    No, there is no ASP.Net web server that runs on (Xamarin)iOS/Android.

    You can however use .cshtml [Razor templates]http://mjhutchinson.com/journal/2012/12/08/razor_preprocessed_templates).

    If you want online/offline functionality, it would be best to rearchitect things so that your service calls can intelligently switch between the online server and offline Xamarin.iOS/Xamarin.Android code calls. Using a (UI)WebView bridging pattern that could easily be done.

Sign In or Register to comment.