Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

210
Views
How to disable gallery on ipad opening in a widget?

I'm working on an app which includes the ability to choose an image to upload either by taking a picture with the device camera, or choosing an image from the gallery. On all phones we've tried, the gallery opens as a fullscreen overlay, but on the ipads we have to test with the gallery opens as what appears to be a widget.

Screenshot of gallery opened as widget on ipad

How can I disable this behavior in favor of a full screen overlay like on phones?

Below shows the code I'm using to initiate the device camera or gallery:

function showCameraOrAlbum(camera, onSuccess, onFailure) {
    navigator.camera.getPicture(onSuccess, onFailure, {
        quality: 25,
        destinationType: Camera.DestinationType.DATA_URL,
        encodingType: Camera.EncodingType.JPEG,
        mediaType: Camera.MediaType.PICTURE,
        targetWidth: 1242,
        targetHeight: 2688,
        allowEdit: true,
        correctOrientation: true,
        sourceType: camera ? Camera.PictureSourceType.CAMERA : Camera.PictureSourceType.SAVEDPHOTOALBUM
    })
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!