Clico no botão e não chama paginas da internet.

  • 1
  • Problem
  • Updated 4 years ago
Meu aplicativo não chama nenhuma pagina pelo "http://". Eu clico no botão e nada acontece.
por exemplo : Google, porem, pelo navegador funciona, chama as paginas com "http://" normalmente, mas quando é compactado pelo phonegap não fuciona mais, não no celular, so pelo navegador.

obrigada.
Photo of luana de lima

luana de lima

  • 5 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
- Which PGB version are you building with?
- How do you whitelist the external domain?
- Do you have both config.xml and index.html in the root ("/") of your zip file?
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@luana,
Since this is your first post, please answer the following question:
- is this your first hybrid app?
- are you using Desktop App?
- are you using CLI, Build, or SDK? Please do not assume the answer, please read the link.

Thanks
Jesse
Photo of luana de lima

luana de lima

  • 5 Posts
  • 0 Reply Likes
no root, não tem o config.xml, tem somente o index.html.
o site está hospedado no Hostinger. eu estou usando o phonegap build.
E um app mobile. não é desktop.

Obrigada desde já.
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Phonegap Build expects both config.xml and index.html in the root ("/") of your zip file.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Petra, all yours
Photo of luana de lima

luana de lima

  • 5 Posts
  • 0 Reply Likes
já criei o arquivo config.xml, porem continua o mesmo erro..
o app não chama nenhuma página da web.
Photo of luana de lima

luana de lima

  • 5 Posts
  • 0 Reply Likes
ja tem na pasta root os arquivos index.html e config.xml
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
If your zip file is available online somewhere, please post its url, and I will be happy to have a look.
Photo of luana de lima

luana de lima

  • 5 Posts
  • 0 Reply Likes
o arquivo zip não está online..
estou somente enviando o arquivo zip para o phnegap.
dentro da arquivo zip contem arquivos em "html", que chamam por "href" páginas na web. Porem, clico no botão em "href" e não chama pagina alguma.
axo que isso ocorre na hora do empacotamento, pois no desktop funciona normalmente, só da erro quando uso o phonegap
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Well, if you can't make the zip available, it's going to be practically impossible to find the error and make suggestions for improvement.