Page 1 of 1

Dashticz button open intent without popup

Posted: Monday 30 September 2019 1:38
by wimmme
Hello,

I am using Dashticz for quite some time as my dashboard for Domoticz, on a 24" android wall tablet.
As browser I use Fully Kiosk Browser, a true blessing to use.
It has a feature to open android intents, so if you open an url on any webpage displayed in it, it will open the intent, for example the spotify app, a tasker task, the Sonos app, etc ...
In Dashticz we have the option to open an url, but it always opens in a popup screen. This is great for websites, but for intents it has the side effect that after opening the android app, an thus returning to Dashticz in Fully browser, it still opens a blank popup window.

Anyone knows a way to overcome this?

example:
buttons.youtube = {width:12, icon:'fab fa-youtube', title: 'Youtube', url: 'intent:#Intent;launchFlags=0x10000000;component=com.google.android.youtube/.app.honeycomb.Shell%24HomeActivity;end'}

Re: Dashticz button open intent without popup

Posted: Monday 30 September 2019 2:37
by HansieNL
I have added the option newwindow:true to open not in a pop-up, but in a new window. Does this option solve your problem?

Re: Dashticz button open intent without popup

Posted: Monday 30 September 2019 10:25
by wimmme
HansieNL wrote: Monday 30 September 2019 2:37 I have added the option newwindow:true to open not in a pop-up, but in a new window. Does this option solve your problem?
will try that this evening, tnx !

Re: Dashticz button open intent without popup

Posted: Monday 30 September 2019 20:52
by wimmme
HansieNL wrote: Monday 30 September 2019 2:37 I have added the option newwindow:true to open not in a pop-up, but in a new window. Does this option solve your problem?
This sadly does not solve my problem. It opens the intent and after closing it displays a blank page in a new tab (or window)

In fact, i think an option to open the link in this window would solve it.

newwindow:true -> <a target=_blank
thiswindow:true -> <a target=_self

An url that opens an intent doesn't change the current page, so that gives us the opportunity to extend the Dashticz functionality to an android app launcher :mrgreen:

Re: Dashticz button open intent without popup

Posted: Tuesday 01 October 2019 9:07
by Lokonli
wimmme wrote: Monday 30 September 2019 20:52
HansieNL wrote: Monday 30 September 2019 2:37 I have added the option newwindow:true to open not in a pop-up, but in a new window. Does this option solve your problem?
This sadly does not solve my problem. It opens the intent and after closing it displays a blank page in a new tab (or window)

In fact, i think an option to open the link in this window would solve it.

newwindow:true -> <a target=_blank
thiswindow:true -> <a target=_self

An url that opens an intent doesn't change the current page, so that gives us the opportunity to extend the Dashticz functionality to an android app launcher :mrgreen:
That is a good idea. I'll add it to the feature request list. I expect it will become available in the next beta.

In fact we have three options for a link. If we reuse the newwindow parameter we could map them as follows:
0: no new window/frame (for intent handling, api calls)
1: open in new window
2: open in new frame

The default value will be 2, to prevent a breaking change in default behavior.

Feedback?

Re: Dashticz button open intent without popup

Posted: Tuesday 01 October 2019 9:45
by wimmme
Ok for me, considered reuse of the same parameter as wel, but i had no idea tristate was an option :-)
The no new window could also come in handy for javascript calls etc ... :idea:

Just to give an idea on how i use this, it's about the 'buttons' on the right :
dashticz_launcher.jpg
dashticz_launcher.jpg (118.4 KiB) Viewed 804 times

Re: Dashticz button open intent without popup

Posted: Tuesday 01 October 2019 14:38
by Lokonli
image link is broken ...

Re: Dashticz button open intent without popup

Posted: Wednesday 02 October 2019 10:00
by wimmme
Lokonli wrote: Tuesday 01 October 2019 14:38 image link is broken ...
should be better now