-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Hi,
I am trying to run ImmichFrame Android on an old Android 6.0 tablet.
I would like the tablet to boot directly into ImmchFrame, without any human interaction except the power button press.
The ImmichFrame server is ran off-site, available through a Wireguard VPN tunnel.
I have tried to run ImmichFrame as a Launcher to start automatically on boot but once booted, it is stuck on a black screen with the "Waiting for network..." showed a few times. I have to go to the settings, open the URL dialog, save and close the settings to get the slideshow.
I think that this is due to the VPN tunnel that takes at least 1 minute to be opened on start.
I have tried to use the Automation App to wait for 2 minutes before starting ImmichFrame and this time, I get the "Waiting for network..." on black screen in loop. While going to the URL editor and back allows to start the slideshow.
I have checked the source code and I think that this line:
ImmichFrame_Android/app/src/main/java/com/immichframe/immichframe/MainActivity.kt
Line 169 in 8eb0ac8
| Helpers.waitForNetwork(this@MainActivity) |
does not behave correctly with my VPN setup.
I have tried the version 42 of the app (the version before this check was added) and with the delayed start, it works properly.
When using it as a Launcher, I get a browser error-page:
err net::ERR_ADDRESS_UNREACHABLE but after several minutes, the page is reloaded and the slideshow starts.
So I was wondering if we could add a setting to disable the connectivity check? Or modify it to try to ping the ImmichFrame server instead of using the Android Internet connectivity check that is not always relevant in the use-case of this app.