-
-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OctoDash on Android #448
Comments
Electron actually supports Android as a build target, so it is fairly easy for me to create an Android Build. Another user reported issues while installing though, that's why I removed it from the releases. I can build an Android App and link it here. Would be great if you could test that and report back. Removing Electron will be hard, since it is used to store the config and get some information, like version etc ... |
https://drive.google.com/open?id=1F_0bsY353M8-yUVpd-ZH9s8m8exZ6ahy here are the APKs for arm64, armv7l and x64. Feel free to try them out and report back if they work for you 👍 |
Wow, you lightning fast! Sorry to say I am not. I am old and very busy, so don't hold your breath. |
No problem, just test it when you find the time. Don't get your hopes up though ... I think anything above Android 4 would work. |
@UnchartedBull I tried these on Android 9 and 7. Both of them fail with "There was a problem while parsing the package". Would be good to get some CI builds going via Github Actions once we figure this out. I wholeheartedly endorse this Android support suggestion. Would be absolutely outstanding if we could somehow run Octoprint in a container on Android too, something I'm looking into via so called "UserLand templates". Which I assume are like Dockerfiles for userland. Userland is a sort of chroot on android that lets you run containers. There's a potential automated path to turning your old junk into an OctoDash display. |
I would also like to see Android Support. The thing is, that while electron and electron-builder do support .apk files there is little to no documentation available about that. I also don't have any access to an Android Device so testing is super hard. If you're interested feel free to test around. I can create you a branch with the android build enabled so you can test this on your devices :) |
Sorry for the stupid question, but I had the impression that APKs are always zip files. When I try to unpack it with the apktool, or unzip I get error messages, because it is not a zip file. The command file tells that it is a gz file. I can decompress it with gunzip but then file tells it is a tar file that tar can't unpack. Is it possible that just the packing of the APK makes problems? |
@UnchartedBull I can set up virtual machines for this purpose. Will endeavor to do this if you set up the branch. |
@gdachs ok that sounds very interesting. I never build an Android App, nor do I had an Android device in the last years. If the zip file is corrupted and can't be parse the Parsing Error would also make sense. @MatthewCroughan I created this branch: https://github.com/UnchartedBull/OctoDash/tree/fix/android-build if you run |
@UnchartedBull I can confirm that building results in an improper apk. I tried to install on multiple devices running various android versions and all reported
|
There is a similar issue in the electron-builder repo: electron-userland/electron-builder#4484, although there wasn't any response. Also from what I've read online Electron doesn't support Android (but rather only the .apk package format) and there is also no plan to support Android / iOS. So this would require some major rewrite to move this over to Cordova or similar. Maybe something for the future, but for now I'm closing this. |
Did you found any solution ? |
Yes, I dropped OctoDash and OctoPrint. I use Mainsail and Moonraker now |
Has Android build been ended? I genuinely want to be able to use this? @UnchartedBull |
A cheap, or used, android tablet would make a great OctoDash display that would work with any hardware that is running Octoprint. Even small devices without HDMI output would be useable (ZeroPi, NanoPi NEO2, ...) for running OctoPrint.
I have never done something with electron. I have only made the "Tour of Heroes" with Angular. So I wouldn't be very helpful. I have read that it might be possible to get an Angular app running on Android using cordova: https://medium.com/@EliaPalme/how-to-wrap-an-angular-app-with-apache-cordova-909024a25d79
The question is now how important is Electron for OctoDash. Does OctoDash use much more than the browser engine from Electron? If not, then it should be possible to get rid of it for the Android app.
The text was updated successfully, but these errors were encountered: