Fully Kiosk Browser für Android

Begonnen von aloz77, 06 Februar 2016, 20:27:54

Vorheriges Thema - Nächstes Thema

Mave

Moin aloz77,

ich verwende dieses Skript von amenomade, um mein FTUI automatisch nach einer Minute von einer Unterseite auf die Home Seite zurückzustellen.

Auf meinem Laptop funktioniert das im Chrome Browser ganz hervorragend.

Leider funktioniert das auf meinen 3 Android Tablets unter Fully Plus nur einmal nach dem Start bzw. einer Aktualisierung und dann nicht wieder.

Hast Du eine Idee, woran das liegen könnte?

Und könntest Du mir eventuell sagen, wie ich das Skript erweitern muss, dass mit dem emulierten Drücken des Home Buttons auch die URL auf #home.html zurückgestellt wird?

Vielen Dank.

Grüße Mave

Fixel2012

Zitat von: Mave am 12 November 2017, 11:00:16
Und könntest Du mir eventuell sagen, wie ich das Skript erweitern muss, dass mit dem emulierten Drücken des Home Buttons auch die URL auf #home.html zurückgestellt wird?

Das würde mich auch interessieren! :)
Fhem 5.8 auf Raspi 3, HMLAN und 868MHz CUL mit einigen Komponenten, Z-Wave Rollladenaktoren, Tablet UI, 433 MHz CUL mit Baumarktsteckdosen und Temp Sensoren, Amazon Echo, Echo Dot, 2x SONOS  play1, 1x SONOS Connect AMP,  presence, HUE, Lightify

Mave

Fixel,

setzt Du auch Fully ein und funktioniert das Skript bei Dir mit Fully?

Grüße Mave

Fixel2012

Zitat von: Mave am 12 November 2017, 12:51:30
Fixel,

setzt Du auch Fully ein und funktioniert das Skript bei Dir mit Fully?

Grüße Mave

Um ehrlich zu sein habe ich es noch nicht auf dem Tablet getestet.  ;D Auf dem PC funktioniert es jedenfalls.

Zitat von: Mave am 12 November 2017, 11:00:16
Und könntest Du mir eventuell sagen, wie ich das Skript erweitern muss, dass mit dem emulierten Drücken des Home Buttons auch die URL auf #home.html zurückgestellt wird?

Das habe ich lösen können, Google half:

window.location = "DEINE_TABLETUI_HOME_URL";


Das ganze fügst du in den "function returnHome()" Block ein.

Also so:

function returnHome() {
var hash= window.location.hash.replace('#', '').replace('.html', '');
if (hash != "" && hash != "home") {
var homeButton = document.getElementById('home');
$(homeButton).trigger("toggleOn");
window.location = "DEINE_TABLETUI_HOME_URL";
};
}
Fhem 5.8 auf Raspi 3, HMLAN und 868MHz CUL mit einigen Komponenten, Z-Wave Rollladenaktoren, Tablet UI, 433 MHz CUL mit Baumarktsteckdosen und Temp Sensoren, Amazon Echo, Echo Dot, 2x SONOS  play1, 1x SONOS Connect AMP,  presence, HUE, Lightify

Mave

Hey, super. Das war die Lösung für das URL Problem.

Jetzt brauche ich nur noch eine Lösung für das Fully Problem.

Vielen Dank.

aloz77

Das sieht für mich wie ein HTML-Problem aus. Grundsätzlich ist dafür Android Webview zuständig und Fully Kiosk kann daran nicht viel ändern.

Funktioniert das, was ihr wollt, im Chrome auf dem Tablet? Mit Chrome auf dem PC darf man leider im Detail nicht vergleichen.

Mave

Hmm, es geht weder im Chrome auf dem Android Tablet noch im Safari auf den iPad.... :-[

Aber wie kann das sein, weil es doch beim ersten Mal einwandfrei funktioniert?  :(

aloz77

Dann habt ihr vermutlich eine Wurm im HTML/JS-Code. Solange es im Chrome auf Android nicht geht, wird es auch in Fully Kiosk 100% nicht gehen.

Mave

Oha  :(

Hast Du eine Idee, wie man das sonst realisieren könnte?

Der Auto Reload im Fully Browser macht ja immer einen kompletten Reload der gesamten FTUI Seite, was für meine Geschmack nicht so toll aussieht...

Grüße Mave

aloz77

Nein, das ist eine HTML/JS-Problematik. Da blicke ich nicht durch.

Fixel2012

Zitat von: Mave am 12 November 2017, 14:54:35
Hmm, es geht weder im Chrome auf dem Android Tablet noch im Safari auf den iPad.... :-[

Aber wie kann das sein, weil es doch beim ersten Mal einwandfrei funktioniert?  :(

Ist bei mir irgendwie auch ein wenig komisch... Am PC geht es einwandfrei, an den Tablets nun nicht mehr. Mehrere Browser habe ich noch nicht ausprobiert, nur Fully.
Fhem 5.8 auf Raspi 3, HMLAN und 868MHz CUL mit einigen Komponenten, Z-Wave Rollladenaktoren, Tablet UI, 433 MHz CUL mit Baumarktsteckdosen und Temp Sensoren, Amazon Echo, Echo Dot, 2x SONOS  play1, 1x SONOS Connect AMP,  presence, HUE, Lightify

amenomade

Hier meine Fully Plus Konfiguration, falls das helfen kann:
Enable Fullscreen Videos
Allow embedded videos to go fullscreen off
Autoplay Videos
Start playing embedded videos when page loaded off
Autoplay Audio
Start playing embedded audio files when page loaded on
Enable Keyboard
Enable text input in editable web form fields off
Enable Text Selection
Enable text selection by long click on
Enable Form Autocomplete
Save form data and allow autocomplete off
Enable File Upload (PLUS)
Allow users to upload files to web forms off
Enable Camera Capture Upload (PLUS)
Allow users to upload pictures from camera off
Enable Video Capture Upload (PLUS)
Allow users to upload videos from camera off
Enable Audio Record Upload (PLUS)
Allow users to upload audio records off
Enable JavaScript Alerts
Allow websites to show alert, prompt and confirm boxes on
Enable Popups (PLUS)
Handle popups and open links in new frame on
Enable Webcam Access (PLUS)
Allow accessing webcam by HTML5 off
Enable Microphone Access (PLUS)
Allow accessing microphone by HTML5 off
Enable Geolocation Access (PLUS)
Allow geolocation by HTML5 off
Open URL Schemes in Other Apps
Allow other apps to open url schemes like mailto: or intent: off
View Local PDF Files (PLUS)
Choose a way to view local PDF files Disabled
View Remote PDF Files (PLUS)
Choose a way to view remote PDF files Disabled
Play Videos in Fully (PLUS)
Play supported video streams incl. RTSP using built-in player off
View Other Remote Files
Choose a way to view remote files Disabled
URL Whitelist
One URL per line, may use * wildcard, all allowed if empty
URL Blacklist
One URL per line, may use * wildcard, overrides whitelist
Redirect Blocked to Start URL
Redirect not whitelisted or blacklisted URL to Start URL off
Enable Third Party Cookies
Allow website to accept third party cookies on
Ignore SSL Errors
Only use this for testing and with self-signed certificates on
Cache Mode
Select caching mode for the Webview Default
Clear Cache After Each Page
Purge cache after each page loaded off
Fake User Agent String
Select the user agent string of another web browser Default
Custom Error URL (PLUS)
Redirect to this URL in case of any errors
Web Browsing Settings
Show Progress Bar
Nice progress bar at the top while loading a page on
Enable Pull to Refresh
Allow pulling down to refresh the current page off
Enable Back Button
Go one page history back on back button off
Load Start URL on Home Button
Goto Start URL when tapping on Home Button (Kiosk Mode required) on
Enable Tap Sound
Play click sound when tapping in Webview on
Swipe To Navigate (PLUS)
Swipe left and right to go history back and forward off
Animate Page Transitions (PLUS)
Slide frames in and out when navigating, hide while loading off
Wait for Network Connection
Never try to load web pages if no network connection available on
Search Provider URL
Use this search provider URL if input is not a valid URL
https://www.google.com/search?q=
Read NFC Tags (PLUS)
Open URLs from NDEF formatted NFC tags while Fully is in foreground off
Web Zoom and Scaling
Enable Zoom
Allow manual zooming if website supports off
Load in Overview Mode
Downscale older websites to the viewport width on
Use Wide Viewport
Support HTML viewport metatag or wide viewport off
Initial Scale
Set initial scale for older websites in %, set 0 for default 0
Set Font Size
Set font scaling for websites in %, default 100% 100
View in Desktop Mode
Try presenting websites in desktop view instead of mobile view off
Web Auto Reload
Auto Reload on Idle
Reload Start URL after some seconds of inactivity, set 0 for disabled 0
Auto Reload after Page Error
Reload Start URL after some seconds on page load failure, set 0 for disabled 0
Auto Reload on Screen On
Reload Start URL when the screen goes on off
Auto Reload on Screensaver Stop
Reload Start URL when screensaver stops off
Auto Reload on Network Reconnect
Reload Start URL when Wifi/LAN/LTE reconnects off
Auto Reload on Internet Reconnect (experimental)
Reload Start URL when real Internet connection reappears (checked by pinging 8.8.8.8) off
Delete Cache on Auto Reload
Purge cache each time auto reload is done off
Delete Webstorage on Auto Reload
Purge webstorage each time auto reload is done off
Delete History on Auto Reload
Purge history and form data on each auto reload off
Delete Cookies on Auto Reload
Remove cookies each time auto reload is done off
Application Launcher
Show Application Launcher on Start
Always show application launcher instead of Start URL off
Inject HTML Code in Launcher
Design your launcher by injecting CSS/JS code in <head> of the launcher page
Toolbars and Appearance
Show Navigation Bar
Show system navigation bar (bottom bar) permanently off
Navigation Bar Color
Select background color for the navigation bar #0
Show Status Bar
Show system status bar (top bar) permanently off
Status Bar Color
Select background color for the status bar #0
Remove System Bars Permanently (experimental)
Hard remove status and navigation bars, requires root off
Show Action Bar
Show action bar with back, forward and home buttons off
Action Bar Title
Show this text on the action bar
Fully Kiosk Browser
Action Bar Background Color
Select background color for the action bar #ff0d47a1
Action Bar Text Color
Select text and icon color for the action bar #ffffffff
Custom Icon URL
Load action bar icon from this URL
Custom Background Image URL
Load action bar background image from this URL
Show Back Button
Show back button on action bar on
Show Forward Button
Show forward button on action bar on
Show Refresh Button
Show refresh button on action bar off
Show Home Button
Show home button on action bar on
Show Print Button
Show print button on action bar off
Show Action Bar in Settings
Show the action bar also in Fully settings off
Show Address Bar
Show address bar with current URL off
Address Bar Color
Select background color for the address bar #ffbbbbbb
Device Management
Keep Screen On
Prevent the display from going off after some time on
Screen Brightness
Set screen brightness 0-255, set empty for system default
Force Screen Orientation
Select the orientation for Fully (doesn't force other apps) Auto
Unlock Screen
Skip screen lock when launching Fully (doesn't unlock for other apps) on
Launch on Boot
Start Fully app on system startup on
Screen Off Timer (PLUS)
Turn screen off after some idle seconds, set 0 for disabled 60
Screensaver Timer (PLUS)
Show screensaver URL after some idle seconds, set 0 for disabled 30
Screensaver URL (PLUS)
Show this URL when screensaver starts, set daydream: for Android daydream or dim: for black daydream:
Force Wifi SSID (PLUS)
If Wifi SSID available force connection to it
Force Wifi Keyphrase (PLUS)
WPA keyphrase for the forced Wifi SSID
Power Settings
Sleep on Power Connect
Hibernate device when power cord is plugged off
Sleep on Power Disconnect
Hibernate device when power cord is unplugged off
Scheduled Sleep Time (PLUS)
Local time (HH:MM) for daily device hibernate, empty: disabled
Scheduled Wakeup Time (PLUS)
Local time (HH:MM) for daily wake up, empty: disabled
Keep Sleeping If Not Powered
Don't wake up on schedule if device is unplugged off
Show Battery Warning (PLUS)
Show warning if battery below this value, 0 for disable 0
Set CPU Wakelock
Force CPU to always keep up (usually not needed) off
Set Wifi Wakelock
Force Wifi to always keep up (usually not needed) off
Kiosk Mode (PLUS)
Enable Kiosk Mode
Prevent users from starting other apps on
Kiosk Exit Gesture
Select the gesture to show PIN dialog
Fast 5 taps anywhere
Kiosk Mode PIN
Password needed to exit the Kiosk Mode, default: 1234 *****
Wifi PIN
This PIN only allows access to Androids Wifi settings *****
Disable Status Bar
Lock status bar and system settings access on
Disable Volume Buttons
Lock volume buttons in Kiosk Mode on
Disable Power Button
Lock the power button in Kiosk Mode on
App Whitelist (experimental)
Allow selected apps to go to foreground, one package name per line, may use * wildcard
Advanced Kiosk Protection (experimental)
Enable advanced protection against starting other apps off
Motion Detection (PLUS)
Enable Motion Detection
Use front camera for motion detection on
Turn Screen On on Motion
Turn screen on when motion detected, look in Device Management for Screen Off Timer on
Exit Screensaver on Motion
Stop screensaver when motion detected, look in Device Management for Screensaver Options on
Pause when Fully in Background (experimental)
Pause motion detection while another app is in foreground off
Detector Sensitivity
Motion detector sensitivity (0-100) 90
Detector Frame Rate
Frames per second to analyse (1-25) 5
Show Cam Preview
Show a small cam preview on screen off
Device Movement Detection (PLUS)
Enable Movement Detection
Use accelerometer, compass sensors or iBeacons for movement detection off
Accelerometer Sensitivity
Accelerometer sensor sensitivity to trigger (0-100) 80
Compass Sensitivity
Compass sensor sensitivity to trigger (0-100) 50
Turn Screen On on Movement
Turn screen on when movement detected, look in Device Management for Screen Off Timer on
Exit Screensaver on Movement
Stop screensaver when movement detected, look in Device Management for Screensaver Options on
Play Alarm Sound on Movement
Play alarm sound when movement detected (theft protection) off
Alarm Sound File URL
Play file from this URL on alarm, keep empty for default short sound
Play Alarm Sound until PIN entered
Play alarm sound until correct PIN is entered (in Kiosk Mode only) off
Ignore Motion Detection when Moving Device
Don't detect any motion while device sensors detect movement off
Anti-Theft Beacon IDs
List of iBeacons as UUID/Major/Minor, one beacon per line, may use * wildcard
Anti-Theft Beacon Distance
Distance threshold to iBeacons (in meter, very approximately) for alarm, set 0 for disabled 5
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

E-J-D

Zitat von: aloz77 am 07 November 2017, 21:13:35
Hat deine URL ein Schrägstrich am Ende?

O-M-G !!  :o

Ja, das war der Fehler! Wahnsinn! Hab vielen Dank für die Hilfe.

MrJackBlack

Wie stabil läuft bei euch der Browser? Auf meinem Acer Aconia One 10" stürzt der Fully Browser alle zwei bis drei Tage.
FHEM 5.8 mit Homebridge auf Intel NUC
HUE, LIGHTIFY, JeeLink, CC1101, haufen Lampen und Sensoren. Interface via TabletUI auf einem Android Tablet. Seit Neuestem auch ein Landroid S über FHEM  angesteuert

aloz77

@MrJackBlack: Wie äußert sich der Absturz genau? Interessant wäre auch welche Fully-Version, welche Android-Version und welche Webview-Version drauf ist.