pkuehnel / TeslaSolarCharger

A software to let your Tesla charge with solar energy ☀
GNU General Public License v3.0
129 stars 22 forks source link

Problem with Webview on Android Tablet #1088

Closed BillGOH closed 7 months ago

BillGOH commented 7 months ago

To begin with, thanks again for this great software. I have an odd issue (and I would understand if it gets low priority, but maybe others are affected as well).

I am using an Amazon Fire HD 10 Tablet from 2021 with HABPanel and openHAB. HABPanel is displayed by Fully Kiosk Browser. Since 2.24 TeslaSolarCharger cannot be displayed within HABPanel any more. I see only the percentage circle and then the browser states that an unhandled error occurred.

I checked with Fully Kiosk Browser and they said, that I am using an outdated version of Amazon Webview (ver. 90). However, it is - unfortunately - not possible to update this module on this tablet (which has been "cracked" by Fire Toolbox). It is also not possible to install the original Android webview.

For me, the website of TeslaSolarCharger looks quite simple so I am not sure what changed with 2.24 that requires a more complex browser rendering.

Since many smarthomers use Fully Kiosk Browser on Amazon tablets it might be worth to simplify the site (again)?

Thanks for help!

pkuehnel commented 7 months ago

I added MudBlazor as third party component and updated everything to the latest .NET version. Do you have more details about the issue? A more detailed error should be visible if you can open the browser dev tools.

BillGOH commented 7 months ago

Thank you for your quick reply.

Unfortunately, I cannot use debug tools with Fully Kiosk Browser, because those are not implemented.

If I install another browser it does not use system webview, but it's own engine (where TeslaSolarCharger works).

DomiSanNo1 commented 7 months ago

I have the same issue on Apple iPad Safari...

'unhandled error occurred'

Bit only in the Integration in OpenHab. On the iPhone Safari it works well without the Integration.

pkuehnel commented 7 months ago

@DomiSanNo1 Could you please update to the latest version? I updated a UI component to the latest version. It is doubtful that the issue is fixed, but maybe it is resolved. If not, I would need some logs from the browser or at least a screenshot of the error.

BillGOH commented 7 months ago

Thanks for your efforts. No change here, though. Unfortunately the browser only says that an unhandled error occurred.

DomiSanNo1 commented 7 months ago

Hey, it doesnt work. Here is the Screenshot image

pkuehnel commented 7 months ago

What happens if you load a page that does not exist, e.g. http://192.168.1.50:7190/asdf (use your correct IP address)?

What happens if you load CarSettings http://192.168.1.50:7190/CarSettings

What happens if you load Swagger: http://192.168.1.50:7190/swagger/index.html

BillGOH commented 7 months ago

Swagger works, the other sites not.

pkuehnel commented 7 months ago

@DomiSanNo1 is it the same for you?

pkuehnel commented 7 months ago

@BillGOH Try updating TSC with the tag nomudblazor instead of latest. Note: Some UI features are not available then.

BillGOH commented 7 months ago

Unfortunately not working. Same error. Thank you for your patience.

pkuehnel commented 7 months ago

Ok then I very likely can not help as the only difference then is the latest version of Microsoft .NET. It is for sure not any caching issue?

BillGOH commented 7 months ago

No. I checked it and did restart the app and the device. Thanks - nevertheless - for your help and quick feedback.

DomiSanNo1 commented 7 months ago

Yes, the same for me.

pkuehnel commented 7 months ago

As I am not able to reproduce this issue and it seems like the update to .NET8 caused the issue I probably can not do much about it. Sorry.