Hi , I’d like to share my experience about taking photos on a smart phone from camera directly. any comments or suggestions are welcomed!
unlike the PictureUploader, users have to choose “open camera” or “select file” before they can start to take a photo. I want to be able to open the camera directly, on both wrapped native app and web-app.
this is what i did to make it happens:
use the PlatformDetection plugin to detect the “name”,
if he name is “Android Browser”, use the $16 Native apps (bdk) 's plugin: BN-Takephoto,
Otherwise use the $9 Simple Mobile Camera Input’s plugin: MobileCameraInput. (it works on
— wrapped native-app in iPhone.
— web-app in both Android and iPhone
)
and if the OS is Windows or OS X (user is using my app on a computer), it opens File Explorer.
thanks.