You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WKWebView RunJavaScriptConfirmPanel Unable to locate the block to delegate conversion method ... #3928
ObjCRuntime.RuntimeException:
Unable to locate the block to delegate conversion method for the method XXXX.iOS.Infrastructure.JSDelegate.RunJavaScriptConfirmPanel's parameter #4. Please file a bug at http://bugzilla.xamarin.com.
Hello I have tried to reproduce the issue running in both simulator and device (iPhone X using iOS 11.3) using current stable and I am unable to reproduce the issue you are seeing, I have attached both my information log [2] and the sample[1] I am using to try to reproduce this issue.
Could you please give this sample a try to see if you can reproduce said issue with it? and if so could you outline the details to reproduce it? (Configuration, build logs etc.), also please attach your version information.
The easiest way to get exact version information:
On Visual Studio for Mac: "Visual Studio" menu, "About Visual Studio" item, "Show Details" button.
On Visual Studio for Windows: "Help menu", "About Microsoft Visual Studio" item.
Then copy/paste the version information (you can use the "Copy Information" button).
To get full build logs just set the log verbosity to diagnostic at the following locations:
On Visual Studio for Mac: Preferences > Projects > Build
On Visual Studio for Windows: Tools > Options > Projects and Solutions > Build and Run
On Visual Studio Windows you also want to add -v -v -v -v to the mtouch additional arguments by right-clicking the project in the solution explorer and selecting Properties.
Note: this is done automatically on Visual Studio for Mac when the log verbosity is set to diagnostic.
Activity
CarLoOSX commentedon Apr 12, 2018
Any ideas ??
Thank you.
dalexsoto commentedon Apr 13, 2018
Hello I have tried to reproduce the issue running in both simulator and device (iPhone X using iOS 11.3) using current stable and I am unable to reproduce the issue you are seeing, I have attached both my information log [2] and the sample[1] I am using to try to reproduce this issue.
Could you please give this sample a try to see if you can reproduce said issue with it? and if so could you outline the details to reproduce it? (Configuration, build logs etc.), also please attach your version information.
The easiest way to get exact version information:
Then copy/paste the version information (you can use the "Copy Information" button).
To get full build logs just set the log verbosity to diagnostic at the following locations:
On Visual Studio Windows you also want to add
-v -v -v -vto the mtouch additional arguments by right-clicking the project in the solution explorer and selectingProperties.Note: this is done automatically on Visual Studio for Mac when the log verbosity is set to diagnostic.
[1] GHIssue3928.zip
[2]
CarLoOSX commentedon Apr 13, 2018
Hello @dalexsoto I found the solution. Xamarin's example only was worked in simulator but I changed the method signature to :
public override void RunJavaScriptConfirmPanel(WKWebView webView, string message, WKFrameInfo frame, Action completionHandler)
{
Without any Foundation Export and now is working in simulator and phisical device.
Sorry for the late answer, I was sleeping 😴
Thank you.