Issue with OpenWindow in Android 5.0


Harald Schneider
The location bar is always present, event thought the parameter is empty. Tested on Android with: Any hints? -- Harald

DecSoft

Hello Harald,

The location argument works here in Android 6.0.1 like expected... what version of Android are you testing?



Harald Schneider
Teststed on 5.1.

it works with this code. But unfortunately the window does not show up as fast as OpenWindow.:
Maybe presentationstyle=fullscreen makes the difference?

DecSoft

Hello Harald,

Certainly, maybe "presentationstyle" do the job... but apparently is not required in Android 6.0.1. The point, on the other hand, is that probably the "slow behaviour" that you note, is related with the options... maybe with "presentationstyle", and why? Because in fact the "OpenWindow" action become to the same Javascript code to be executed.

In my opinion, maybe you need to use the Javascript code that works in Android 5.0, since probably works like expected in later versions. Remember that is perfectly possible to use Javascript code in our apps, for example, we can see that the InAppBrowser plugin have several options, beyond than what the OpenWindow action offers, so, we can use that Javascript directly if we see it useful.



Harald Schneider

I was able to track it down: OpenWindow works under Android 5.1, if you set "Show location bar" to "no" instead of an empty string.

My compliments at this point: Thanks for the freedom to choose between your script commands and the bare Cordova JS code - very nice! :-)


DecSoft

Hello Harald,

Humm... in fact, what the OpenWindow is translated to Javascript we use "no" for the location bar, and not the empty string that we pass as an argument of the OpenWindow action...

About the Javascript usage, certainly is good! We can (and sometimes it's quite good) use pure HTML pieces, CSS style and Javascript code in any place without any problem. :-)



Harald Schneider
I double-checked it with a new build under Android 5.1: The "no" parameter makes no difference. I just deleted the built folder before a new built. Looks like the Javascript workaround was still active. So it might be an issue under Android 5.1 which can be fixed with the workaround mentioned.

Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.