Minecraft-Console-Client icon indicating copy to clipboard operation
Minecraft-Console-Client copied to clipboard

Android App

Open Jeffrey131313 opened this issue 3 years ago • 19 comments

Prerequisites

Console Client Version

new

Describe your problem

Can you make it into an app? Because usually we don't take the computer with us when we are out

Suggest a possible solution

No response

Attach screenshot here (If applicable)

No response

Minecraft Version

No response

Device

Desktop

Operating System

Windows

Jeffrey131313 avatar Sep 01 '22 08:09 Jeffrey131313

You can install Termux on Android and run the application that way.

breadbyte avatar Sep 01 '22 08:09 breadbyte

您可以在 Android 上安装Termux并以这种方式运行应用程序。 I think it's too troublesome, but thank you for your idea

Jeffrey131313 avatar Sep 01 '22 08:09 Jeffrey131313

I just happen to have tried setting up MCC on Android using Termux and Andronix, but the problem is with .NET 6 compilation not working on older distros on ARM64, since they're all outdated in Andronix. I'll try once more, but with pre-built versions. My plan was to try it out, figure the easiest/best/quickest way and then write a page in the documentation. Porting this into an app would be really complicated, but there will be a solution soon, I'm working on it, for people who do not want to mess with Termux. We're going to use a WebSocket Chat Bot, I'm currently developing it: https://github.com/MCCTeam/Minecraft-Console-Client/pull/2126 Since WebSocket can be used in a web browser, I can make an app for Android and iOS using JavaScript.

milutinke avatar Sep 01 '22 12:09 milutinke

thank you

Jeffrey131313 avatar Sep 02 '22 04:09 Jeffrey131313

Huh. never thought about this. Making this work could leave free more of my potato APU to render the game. XD

Splarkszter avatar Sep 05 '22 16:09 Splarkszter

I just happen to have tried setting up MCC on Android using Termux and Andronix, but the problem is with .NET 6 compilation not working on older distros on ARM64, since they're all outdated in Andronix. I'll try once more, but with pre-built versions. My plan was to try it out, figure the easiest/best/quickest way and then write a page in the documentation. Porting this into an app would be really complicated, but there will be a solution soon, I'm working on it, for people who do not want to mess with Termux. We're going to use a WebSocket Chat Bot, I'm currently developing it: #2126 Since WebSocket can be used in a web browser, I can make an app for Android and iOS using JavaScript.

I found this on a quick search on google https://dotnet.microsoft.com/en-us/apps/xamarin

Splarkszter avatar Sep 05 '22 17:09 Splarkszter

I just happen to have tried setting up MCC on Android using Termux and Andronix, but the problem is with .NET 6 compilation not working on older distros on ARM64, since they're all outdated in Andronix. I'll try once more, but with pre-built versions. My plan was to try it out, figure the easiest/best/quickest way and then write a page in the documentation. Porting this into an app would be really complicated, but there will be a solution soon, I'm working on it, for people who do not want to mess with Termux. We're going to use a WebSocket Chat Bot, I'm currently developing it: #2126 Since WebSocket can be used in a web browser, I can make an app for Android and iOS using JavaScript.

I found this on a quick search on google https://dotnet.microsoft.com/en-us/apps/xamarin

I know about it already, it is doable, but it will require a lot of code, the whole console part would have to be abstracted away, as well as configuration part, the GUI project here uses C# process API to start a process and get an output from it, on Android apps function differently. Also, there is an issue of android being pretty strict with apps running in the background, you need to allow additional permissions like disable battery optimizations, etc.. I think none of us here from the maintainer/contributor team is familiar with Xamarin. If someone is, feel free to give it a try.

Edit: The best solution might be simply booting up MCC on a VPS and then controlling it over a phone via a web browser, also then making an APP would be really simple using Websockets. Tho, this is not as powerful as having it as a real app, since over Websockets you won't be able to reboot it or change it's settings, unless there is a script that boots up an external script which kills the running process, modify the settings and fires it up again.

milutinke avatar Sep 05 '22 18:09 milutinke

On our part, we could do the abstraction part, that would enable for MCC to be embedded, which would open a lot of possibilities. Then afterwards someone who has time and will could make an app.

milutinke avatar Sep 05 '22 18:09 milutinke

Yoooo, finally got it working on Termux. I'll update the documentation tomorrow.

Screenshot_20220906-011442_Termux.jpg

milutinke avatar Sep 05 '22 23:09 milutinke

nice!!!!

Splarkszter avatar Sep 06 '22 07:09 Splarkszter

The documentation section is finished https://mccteam.github.io/docs/guide/installation.html#running-on-android

So for now this could be a solution. Tho we should work on getting those things I've mentioned abstracted away so we could make an app using Xamarin.

milutinke avatar Sep 06 '22 13:09 milutinke

For iPhone/iOS users, there is iSH, sadly I do not own an iPhone so I can't test it out. If someone who has an iPhone and some time, let's figure out the process for it and make a documentation page. Installation of iSH with Alpine linux: https://www.youtube.com/watch?v=wIGVLM3Oaag On my part I'll be testing on Alpine on Android, I already got it working in Docker, tho I forgot how I installed .NET, there were some tweaks, can't remember. I'll report back here.

milutinke avatar Sep 06 '22 14:09 milutinke

For iPhone/iOS users, there is iSH, sadly I do not own an iPhone so I can't test it out.

If someone who has an iPhone and some time, let's figure out the process for it and make a documentation page.

Installation of iSH with Alpine linux: https://www.youtube.com/watch?v=wIGVLM3Oaag

iSH is running on 32 bit system. I don't think it is possible to run MCC, or even install .NET on it. image

ReinforceZwei avatar Sep 06 '22 15:09 ReinforceZwei

For iPhone/iOS users, there is iSH, sadly I do not own an iPhone so I can't test it out. If someone who has an iPhone and some time, let's figure out the process for it and make a documentation page. Installation of iSH with Alpine linux: https://www.youtube.com/watch?v=wIGVLM3Oaag

iSH is running on 32 bit system. I don't think it is possible to run MCC, or even install .NET on it. image

There is a 32 bit ARM build for Alpine: https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-aspnetcore-6.0.8-linux-arm32-alpine-binaries If I am not mistaken, iPhones have ARM processors?

milutinke avatar Sep 06 '22 17:09 milutinke

Yes, iPhone is using ARM CPU, but iSH is not. iSH is using x86 architecture.

ReinforceZwei avatar Sep 07 '22 00:09 ReinforceZwei

The documentation section is finished https://mccteam.github.io/docs/guide/installation.html#running-on-android

ahhh yes. that's how a good doc is done. Excelent work!!!, i'm gonna follow it and share the results.

Splarkszter avatar Sep 07 '22 02:09 Splarkszter

Ok, so i had problems with F-Droid install button was not there, pretty unreliable then, because some issue posts said F-Droid is very slow for updates and fixes, so it's just best to go to the original repository of the App. (Which is this one https://github.com/termux/termux-app#github ). And then with an image point or highlight the releases button inside on GitHub.

On the step when you run ubuntu there is a typo in the command, this one saying './startubunUT.sh' instead of './startubunTU.sh'

Other than that i seems to be running correctly. i'll test modifying the config file later for remote control and scripts.

Note: My device is a 'Samsung Galaxy S9'

Splarkszter avatar Sep 07 '22 03:09 Splarkszter

Ok, so i had problems with F-Droid install button was not there, pretty unreliable then, because some issue posts said F-Droid is very slow for updates and fixes, so it's just best to go to the original repository of the App. (Which is this one https://github.com/termux/termux-app#github ). And then with an image point or highlight the releases button inside on GitHub.

On the step when you run ubuntu there is a typo in the command, this one saying './startubunUT.sh' instead of './startubunTU.sh'

Other than that i seems to be running correctly. i'll test modifying the config file later for remote control and scripts.

Note: My device is a 'Samsung Galaxy S9'

I'll update the documentation to use the git repo instead of F-Droid. For me it worked, sometimes the install button needs some time to appear, that might be the case on your phone. I'm using Samsung Galaxy A9 2018.

Edit: Fixed

milutinke avatar Sep 07 '22 08:09 milutinke