Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

206
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda