Check camera permission when select 'Take photo' button on webview - flutter

I have a feature to upload image from device to webview.
First time I access camera, it show popup request permission. If I cancel request, it get black screen camera.
enter image description here
enter image description here
I tried debugging on the app and researching but got no result.
I'm using plugin flutter_inappwebview 5.7.1.
Thanks for your help.

Related

Conflict between webview and pusher beam in app Flutter

When I use webviewController.runJavascript(dataJs) of webview the app immediately cannot receive notifications from pusher beam but the app can still receive notifications in background
Please see the image below, Is there any way to fix this?
enter image description here
enter image description here
enter image description here

Take mulitple pictures using image_picker in flutter

I've got an app up and running in flutter using ImagePicker. At the moment, after the picture is taken and the check mark (for OK) selected, the ImagePicker closes and the app shows my screen to allow taking either another picture or selecting an image from the gallery.
What I would like to do is take a picture, and then after the 'ok', show the camera again, until the user x's out of the camera.
Do I override an event to change this behaviour, and if I do, which event?

Facebook not showing proper thumbnail of app image

I built an app, the Facebook however does not shows the thumbnail completely. It just crops the image everytime. I have tried with various image sizes but still no success.The open graph data is also included and Fb OG Debugger does not show any error.
A sample page :
https://soumou.website/apps/share.php?img=1770489253166485_20160918092759&sex=male&name=Sourav+Ghosh&app=partner_thinks
Well, that's Facebook. It stretches the image proportionally and that's why it's cropping.
Workaround: attach an image itself in the post. Save image as... > save it > click Photo/Video when posting

How do you clear image cache in iPhone 5S Safari browser?

Please forgive me if this question sounds like clearing Safari cache/cookies in General->Settings.
The issue is as follows:
We have a custom webpage where user can upload his profile icon/image by choosing from Phone's photo library or taking a photo.
The 1st time user uploads an image P1, it's uploaded successfully to server.
If user refreshes the webpage and tries to upload a different image P2, P1 is uploaded to server.
Problem persists even after clearing browser cache.
If I kill browser and clear cache, then I'll be able to upload a new image.
This problem does not occur on browsers on Google devices or on PC.
Somehow iPhone browser remembers the image object and I need to find a way to clear it.
Launch the Settings app from the Home screen of your iPhone or iPad.
Scroll down and tap on Safari.
Now scroll all the way to the bottom and tap on Advanced.
Tap on Website Data. Notice here you can see how much space on your iPhone or iPad website data is taking up.
Scroll to the bottom again and tap on Remove All Website Data.
Confirm one more time you'd like to delete all data.
Launch the Settings app from the Home screen of your iPhone or iPad.
Scroll down and tap on Safari.
Now scroll all the way to the bottom and tap on Advanced.
Tap on Website Data. Notice here you can see how much space on your iPhone or iPad website data is taking up.
Scroll to the bottom again and tap on Remove All Website Data.
Confirm one more time you'd like to delete all data.

Load Gallery images in Viewcontroller of iphone

am new to iPhone and i have been given a task to show all the images from the gallery of the iPhone to the current view so that the user can select an image and view it and here's the second part of my problem i am having a share button and its functionality is that the selected image by the user on the touch of the share button must be shared on facebook.
Please help me regarding this,
To select image from photo library use UIImagePickerController, here's an example:
http://www.zimbio.com/iPhone/articles/1109/Picking+Images+iPhone+SDK+UIImagePickerController
To integrate facebook in your app, you'll use facebook ios sdk:
http://github.com/facebook/facebook-ios-sdk
Edit 1:
Ok, here's the link for uiimagepickercontrollerdelegate whose method you'll use to get the image, it's really not that hard:
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIImagePickerControllerDelegate_Protocol/UIImagePickerControllerDelegate/UIImagePickerControllerDelegate.html%23//apple_ref/doc/uid/TP40007069
Here's the demo for facebook connect:
link text