How to support file uploads in webView and opening external links in the default browser #143
Closed
ukane-philemon
started this conversation in
General
Replies: 2 comments 6 replies
-
It's on our list to figure out how to handle callbacks. If you're adventurous, you can use CGO to write Obj-C to work around this in an ad-hoc fashion. |
Beta Was this translation helpful? Give feedback.
6 replies
-
Just documenting that there should be a delegate builder and callback support for all this to work now with the new version in main. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, @progrium. I appreciate the Macdrive library and have been trying to use it to achieve certain functionality in Go.
Supporting file uploads:
I have implemented the
webView:runOpenPanelWithParameters:initiatedByFrame:completionHandler:
method and have set the webView UIDelegate but I get a panic each time it gets topanel.Send("beginWithCompletionHandler:", completionHandler)
:Opening external links in the default browser:
I have also implemented the
webView:decidePolicyForNavigationAction:decisionHandler:
method but was unable to execute the decision handler in Go using Macdrive.These two issues have been a pita for some time so I thought about asking for help. Thanks for your reply in advance.
PS: I'd appreciate it if you can also show me a snippet of how to execute a completion handler(with/without arguments) using the Macdrive library in Go.
PSS: I used a workaround for this. You can see my implementation here: https://gist.github.com/ukane-philemon/161467e65b91eaade6561a395cc1d568
Beta Was this translation helpful? Give feedback.
All reactions