Wednesday, 8 June 2016

Android Xamarin AddJavascriptInterface

A recent change in my codeset to API 17 caused my javascript interfaces in a webview to fail. From 17 onwards it is now a requirement that you annotate your method with [Export] and [JavascriptInterface], like so:

    public void Run()
        //do your stuff

No comments:

Post a Comment

Comments are moderated, so you'll have to wait a little bit before they appear!