I tried to call C# method from JS with arguments, but I've got an error.
I'm using Xamarin Android (not Xamarin.Forms)
C# Code:
[JavascriptInterface]
[Export("test")]
public Java.Lang.String Test(Java.Lang.String hello)
{
return hello;
}
JS Code:
var foo = GameBridge.test('foo');
Error:System.InvalidOperationException: Specified managed method 'Test' was not found. Signature: (Ljava/lang/String;)Ljava/lang/String;