Loading

Use Salesforce for Android and iOS to access to the camera

게시 일자: Oct 13, 2022
상세 설명

If you want to have the user take a new photo for your Salesforce for Android and iOS and upload it, you will first need to use a Visualforce page. Following that we have an additional tag called “accept” which when used in an input field we can specify it to include images, this will let the mobile device know that Salesforce for Android and iOS is trying to access the device’s camera and camera roll.

Limitations: There is no way at this time to scan barcodes using the device’s camera. There are ways to process an image taken and see if there is a barcode in the image but this falls outside of standard Salesforce support.
솔루션

If you want to access the mobile device's camera in a Visualforce page in Salesforce App you will need to write an input field like:
<input id="photo" type="file" accept="image/*"/>

This will allow the user to take a new picture or select a picture from the camera roll.
 
Knowledge 기사 번호

000386693

 
로드 중
Salesforce Help | Article