thanksmister / wallpanel-android-legacy

WallPanel for older Android devices
Apache License 2.0
19 stars 8 forks source link

Showing Blank Page on Android 4.4.2 #7

Open schniepp opened 3 years ago

schniepp commented 3 years ago

I can't get it to run on Android 4.4.2 (this is an older Samsung tablet).

I first had to do the IP-based login, since I had the same problem as #abacao. This worked, and the device is now logging in Wallpanel. However, I end up getting just a blank screen, with a blue ribbon on top and a white screen. Absolutely nothing on it.

I tried forcing the browser to CrossWalk or WebView, but nothing worked. The HA page renders just fine in Chrome on the same device.

I have a few questions and don't understand. So I side loaded the app from the APK. How about Crosswalk? I tried installing it both from the app store, and then also a legacy version from APK. I restarted the Wallpanel app a few times; I also restarted the device.

I didn't understand the comments about "Crosswalk is no longer compatible with Android Studio build tools" and the app not being supported. So is it possible to get this to run on Android 4.4.2?

thanksmister commented 3 years ago

Crosswalk project is no longer being updated by the developers but it’s still part of the wall panel legacy app. This app is therefore frozen at it’s current version. What you can try is first loading a simple page like google.com. What’s happening is the page you are trying to load ain’t rendering because of some html, css, or JavaScript incompatibilities. You can try just a simple Lovelace page as well until you find the component that is breaking the support.

schniepp commented 3 years ago

Hi @thanksmister! I am thrilled how quickly you responded!!! I really appreciate your commitment!

I understand all your answers. How about Crosswalk? Does that need to be installed? From the Playstore? Or from APK?

The strange thing is that I can load relatively complex web pages, such as http://cnn.com, and they look fine in Wallpanel. However, the home assistant one still only shows the blue ribbon on top and a white page. I set up a plain lovelace page that only contains one element (such as a badge, or the markup element), but that doesn't load. Perhaps, the challenging code is in the side panel? The side panel can be turned off, but only from the web interface of device itself. (Perhaps, this is done via cookie?)

Right now, I am stuck, as I don't have any further information or insight. Is there any way to debug this? Is there some sort of a console output/debug mode/error log? I can see the first HA page loading, where the authorization is carried out. When I used Chrome on the same device, this first page is then forwarded to the regular lovelace interface. I am thinking this means that the authorization via IP (trusted networks) is working and no password/username needs to be provided. I am out of ideas at this point.

thanksmister commented 3 years ago

Crosswalk library is already used in Wallpanel. Yeah Lovelace seems to be more complex than some sites, you can try to create a new a new dashboard in home assistant with just one component to see if that loads in wall panel. If not then nothing else can be done. You can try with Fully Kiosk version which has good support for older tablets.

MrMuzzio commented 3 years ago

Hello, For older android devices Lovelace may be too much of jscript and will not render right. It also may be too slow for daily use. I'd recommend using Tileboard instead, wich is simpler and faster. Works great with WallPanel.

https://github.com/resoai/TileBoard

schniepp commented 3 years ago

Thanks so much, @MrMuzzio ! This turned out to be super helpful and a total hit! Apologies for my late reply. It turns out, I had run across TileBoard before, but I didn't get what the concept was. I first thought that this should be an Android app alternative to WallPanel (and then wondered that there was no installable app). Only after looking it again (following your lead) I realized that this was basically a simpler page served by Home Assistant itself. I have a beautiful panel now, but I have to say it required a lot of manual fiddling. Definitely a lot less convenient than simply putting together a good Lovelave interface using the GUI. What I did basically required hand coding of the interface (copying and pasting from examples) and then fine tuning the CSS sheet. But it works well now!

thanksmister commented 3 years ago

I am glad that helped. I was working on an app that basically built something similar to tileboard or home panel but delivered as an app. I just ran out of time this year but will try again next year.

MrMuzzio commented 3 years ago

Hi! You're welcome, It does take some work but it is lighter on resources than any other options I've could find making it a great option for old devices. Another advantage of this project is that you can have different folders with copies of the TileBoard Folder tailored for each device. It's simple and does it job, but as you noted it does take work to modify the source code files...

emilic14 commented 1 year ago

Hello, I am trying to use this too as I have a nook glowlight plus that is running android 4.4.2... Actually the legacy app of wallpanel crashes systematically... I can run the non legacy version but then my webview display of the small tileboard dashboard (just one tile) is all black or white...

Can someone tell me if the issue is tileboard or wallpanel ? i mean of course is webview and my old device... but I am trying to give it a second life :)