Xamarin - WebView Calling C# Code From JS
I’m writing this post to document how can we trigger c# code from javascript in (Android & iOS) WebView applications, each different platform has a different way for handling this scenario as following: Scenario: We have a hybrid app that needs to mark page as favourite a link is clicked inside a WebView. iOS: We need to add url handler so for e.g. assume we have a page we need to mark this page as favourite from JS will be calling a url like this one “myapp://favourite?