Dashticz button open intent without popup

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
wimmme
Posts: 20
Joined: Sunday 11 October 2015 23:38
Target OS: Windows
Domoticz version:
Contact:

Dashticz button open intent without popup

Post 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'}
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz button open intent without popup

Post 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?
Blah blah blah
wimmme
Posts: 20
Joined: Sunday 11 October 2015 23:38
Target OS: Windows
Domoticz version:
Contact:

Re: Dashticz button open intent without popup

Post 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 !
wimmme
Posts: 20
Joined: Sunday 11 October 2015 23:38
Target OS: Windows
Domoticz version:
Contact:

Re: Dashticz button open intent without popup

Post 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:
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz button open intent without popup

Post 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?
wimmme
Posts: 20
Joined: Sunday 11 October 2015 23:38
Target OS: Windows
Domoticz version:
Contact:

Re: Dashticz button open intent without popup

Post 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 727 times
Last edited by wimmme on Wednesday 02 October 2019 9:59, edited 1 time in total.
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz button open intent without popup

Post by Lokonli »

image link is broken ...
wimmme
Posts: 20
Joined: Sunday 11 October 2015 23:38
Target OS: Windows
Domoticz version:
Contact:

Re: Dashticz button open intent without popup

Post by wimmme »

Lokonli wrote: Tuesday 01 October 2019 14:38 image link is broken ...
should be better now
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests