blunden / XBMCLauncher

A helper app to allow setting XBMC as your Launcher in Android
Apache License 2.0
35 stars 18 forks source link

Wait fo network issue web service 8080 #18

Open teamonce opened 5 years ago

teamonce commented 5 years ago

Please, can u add the option BOOT_COMPLETED, to start launcher?

On kodi18.3 if the launcher start too soon, dont detect the network up and everytime says.. web server failed to start :(

Or another option, set delay to start launcher 5-10 sec

Thanks a lot

blunden commented 5 years ago

The app doesn't have a UI so I don't know what it would show while waiting.

Also, this app is mostly unmaintained at this point. A Google Play strike killed its momentum almost entirely (from a peak of about 15 000-18 000 installs per month to about 500-600). Someone also took the source code made no changes other than injecting ads and then uploaded it to the Play Store. That caused me to mostly lose interest since I don't use it on my Android TV devices.

If someone feels like submitting a pull request though, I'd review it. :)

teamonce commented 5 years ago

Dont worry by the another app, he can put ads, he can copy your apk, but the people that needs your app, knows how find it, ant that people doesnt stupid, the people to found the problem to launch kodi at start, first search on google, and if you try it, you are the first.

The idea for the delay at boot, i dont have problems to show a black screen, but if you want an idea, u can put to show an splash kodi image for example 2-5 sec, and we can disable splash image on our kodi xD

In my case i share a free epg on my github, and a lot of people, seller's etc.. put that in their backups, but at least i create that to share it free to all. I cant do nothing too

If you cant implement that, or you dont want continue it, dont worry, i only can say you thanks for you work.

Ty

blunden commented 5 years ago

Turns out I already implemented waiting for BOOT_COMPLETED back in 2016 but found that it resulted in a bad UX and consequently never committed it anywhere and therefore never saved those changes.

https://github.com/blunden/XBMCLauncher/issues/7#issuecomment-190400227

I may have implemented it for another reason back then but the result would be the same. Waiting until network is up might be better. I seem to remember trying that too though but not entirely sure.

Yeah, I saw that you had some stuff related to Kodi on your github, which is great. :) This app is or was supposedly shipped on some Android-based media devices from China, according to an email from Google Play sent to developers of pre-installed apps (it was about the planned ability to allow pre-installed apps to be updated from the Play Store without requiring users to sign in with a Google account) so I can sympathize.

teamonce commented 5 years ago

Yeah, i read the other post first, but i tried 2.4 with same problem

When i boot the tvbox, I have all the launchers and all disabled with the app "disable aplication (com.iamaner.oneclickfreeze)", both the leanback and the default "home", and directly start your launcher.

That's why I tell you that I don't have problems waiting 5/10 seconds more with a black screen, and if you need put root to do that, im rooted

Or for example put a timer delay and we can adjust that

If one day you feel like trying to solve this thing adding the time for delay or something, it would be very much appreciated for that.

Meanwhile, i will continue when I turn on the tvbox, closing and opening kodi to have working the web service xD

Thanks a lot for your kindness, have good night man :)

Madirobot commented 4 years ago

Hi,

I would also appreciate if you could add this delay to the code, as I'm using Kodi also as a music center (without display), and unfortunately cannot connect to it without restarting. And for restarting I need to switch on my projector as display.

Thanks a lot!

teamonce commented 4 years ago

Yes, we need it, but if he cant, we cant do anything :(

yeahme49 commented 4 years ago

I've submitted a pull request that waits for the network to be up before launching. APK is available https://github.com/yeahme49/XBMCLauncher/releases/tag/3.5 if anyone wants to try it.

Madirobot commented 3 years ago

Hi yeahme49,

thank you for the updated version. I installed it and it works correctly, waiting for the network to be available, and then starts KODI. Like this, the web server works from the beginning after the first start.

diogosena commented 11 months ago

I've submitted a pull request that waits for the network to be up before launching. APK is available https://github.com/yeahme49/XBMCLauncher/releases/tag/3.5 if anyone wants to try it.

Careful when using this version, if your network fails at boot, you won't have a launcher. Needs some kind of timeout.

blunden commented 11 months ago

@diogosena Yeah, that's why I never pushed it to the Play Store and worked on some improvements that I never pushed here that were intended to solve those problems. For some reason it didn't behave as I expected though, and I sort of lost interest again.

diogosena commented 11 months ago

A simple fixed fallback timeout of maybe 15s should be enough, googletv are getting worst everyday, more closed, more ads... Your app is a lifesaver.

blunden commented 11 months ago

A simple fixed fallback timeout of maybe 15s should be enough, googletv are getting worst everyday, more closed, more ads... Your app is a lifesaver.

If you don't like the Google TV launcher, there are other replacements that you can use that still allow you to more easily use the rest of Android TV.