Software Archive
Read-only legacy content
17061 Discussions

Funciona perfeito no debug, mas fecha sozinho depois de gerada a app

Master_G_
Beginner
506 Views

Olá!

Tenho um aplicativo web mobile criado com base em jquerymobile em php. Minha intenção é gerar um apk dele. Pois bem, criei um projeto em branco e após o app.ready, coloquei um window.location.replace apontando pro aplicativo. Utilizando em debug (com um celular conectado) ele funciona perfeitamente conforme o esperado, porém ao gerar o apk ele abre começa a carregar e se fecha sozinho. O mesmo acontece quando tento o acesso pelo app preview. O projeto em branco também fiz com base em jquerymobile. 

Tentei utilizar o iframe em um app em branco e também não funcionou.

Será que alguém tem alguma ideia de como funciona em debug perfeitamente e nos demais não?

Muito obrigado.

0 Kudos
3 Replies
Pamela_H_Intel
Moderator
506 Views

Please clarify: 

Your app

  • works fine using the Debug tab (with a cell connection)
  • does not work using App Preview (via a USB connection?)
  • does not work when you build the apk and download it via the email link

Is that correct?

0 Kudos
Master_G_
Beginner
506 Views

Hi. Thank you for send message.
Yes, I'm using debug direct in the mobile phone by usb connection.
When I use in:

Using window.location.replace() after document.addEventListener("app.Ready", register_event_handlers, false);  --------> 
Emulate: Works fine, but with font problems (just).
In Debug using USB and a smartphone: Perfect works
In app preview, open with wi-fi (Local Apps) : Stop and close in first page
In app preview, open with wi-fi  (Server apps): Stop and close in first page
Generating and install the apk : Stop and close in first page




Using a iframe   --------> 

Develop/Design :  Works fine, but with font problems (just).
Emulate: Works fine, but with font problems (just).

In Debug using USB and a smartphone: Perfect works
In app preview, open with wi-fi (Local Apps) : Stop and close in first page
In app preview, open with wi-fi  (Server apps): Stop and close in first page
Generating and install the apk : Stop and close in first page



That's it. Sorry for my bad english.Thank's again.
 

0 Kudos
Swati_S_Intel1
Employee
506 Views

Can you send your project in a .zip file? You can private message on this thread. Some websites have X-frame options set which does not allow those URLs to be launched through iframe for security reasons. If you are trying to load such URLs they will not work on device although they will work in design mode and Emulator. 

0 Kudos
Reply