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'}
Dashticz button open intent without popup
Moderators: leecollings, htilburgs, robgeerts
- 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
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
Re: Dashticz button open intent without popup
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

-
- Posts: 2287
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz button open intent without popup
That is a good idea. I'll add it to the feature request list. I expect it will become available in the next beta.wimmme wrote: ↑Monday 30 September 2019 20:52This 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![]()
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
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 ...
Just to give an idea on how i use this, it's about the 'buttons' on the right :

The no new window could also come in handy for javascript calls etc ...

Just to give an idea on how i use this, it's about the 'buttons' on the right :
Last edited by wimmme on Wednesday 02 October 2019 9:59, edited 1 time in total.
-
- Posts: 2287
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz button open intent without popup
image link is broken ...
Who is online
Users browsing this forum: No registered users and 1 guest