• Home
  • Features
  • Pricing
  • Contact
  • Account
  • Home
  • Features
  • Pricing
  • Contact
  • Account
Home/Knowledge Base/Answer to General Questions/Enabled Camera Access but why still Camera option is not showing while choosing file or image?

Enabled Camera Access but why still Camera option is not showing while choosing file or image?

62 views 0

Written by Zawad Anjum
September 23, 2024

Sometimes, just enabling the Camera Access Permission from Advanced Settings page does not work for some sites. To solve that issue, make sure you followed the  procedure after enabling the camera access. Which is ,

  1. Go to the Integration Module 🔧.
    • In the integration settings, enable Custom CSS & JS by toggling this option on.
    • Then, navigate to the Custom JavaScript section ✍️.
    • Paste the script code provided below into the custom JavaScript field. This code will show the camera permission popup when the app opens for the first time.
  2. After pasting the code, make sure to save your changes 💾 by scrolling to the bottom and clicking the “Save” button.
  3. Finally, rebuild the app 🛠️ to apply the new settings. Once rebuilt, users will be able to choose between uploading an image from their gallery or using their camera directly when uploading files.

If you need further assistance or run into any issues, our support team is always available to help you ☎️💬.

The script:

if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {

    const constraints = {

      video: true

    };

    navigator.mediaDevices.getUserMedia(constraints)

      .then(function (stream) {})

      .catch(function (error) {});

  }

Was this helpful?

Yes  No
Related Articles
  • Why payment is not working while upgrading my App?
  • Why is the Navigation Drawer not showing?
  • Why disabling Zoom not working in the app?
  • How to show the camera option while uploading a file or image in the app?
  • Why some of the links are opening in the browser automatically?
  • Why location access is not working in the app?

Didn't find your answer? Contact Us

Leave A Comment Cancel reply

  Why location access is not working in the app?

Why is the website loading slowly in the app?  


Appilix
About
  • Contact Us

  • Privacy Policy

  • Refund Policy

  • Terms & Conditions

Discover
  • FAQs

  • Plans & Pricing

  • Changelogs

Resources
  • Web to App

Connect With Us

© 2024 Appilix. All Rights Reserved

  • Privacy Policy

  • Terms & Conditions