Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

211
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda