1

I am using UIWebView, while uploading images, sometimes iOS giving warning as

Not an accepted type

alert, with ok button, when I click ok, alertview is not dismissed.

Is there any way to close alert from url loaded in uiwebview.

I found similar links below:

Why can't I close or dismiss a Javascript alert in UIWebView? UIWebView stringByEvaluatingJavaScriptFromString hangs on iOS5.0/5.1 when called using GCD

But not sure how to do it in Xamarin.

Community
  • 1
  • 1
subha
  • 1,050
  • 2
  • 15
  • 42
  • Please someone give me idea what's going on, since alert is not being dismissed, app is getting stuck and I have to remove app from recent list to make it normal – subha Nov 28 '15 at 08:16
  • Can you post your code how you initialize your UIAlertView? – Shalva Avanashvili Nov 28 '15 at 10:11
  • @BUKA, I am not using UIAlertView, alert is triggered by iOS itself, as warning while trying to upload image file – subha Nov 28 '15 at 10:16
  • Have you checked the same process(uploading an image) in safari? Look [here](https://forums.xamarin.com/discussion/47524/webview-input-type-file-not-working), maybe somehow it helps – Shalva Avanashvili Nov 28 '15 at 10:25
  • Yes, in safari also, its showing warning, but if I click ok, it dismisses the warning message, whereas in UIWebview its making the app stuck. – subha Nov 28 '15 at 10:30

0 Answers0