I am developing an application which has an android client and a pc server. I have gotten stuck at this part for a while now due to the nature of the problem.
The network structure is based on the 3rd party library, RiptideNetwork if anyone is interested, and basically within Unity I call the library's Update method on the Server and Client side. However, Unity suspends all code execution when the application goes in the background on Androids, which stops the client from updating and eventually gets timed out.
I did a lot of searching but I never quite understood if the solutions I found allowed me to not only run standard C# Code but also the 3rd party library code. The library is a C# .dll file which I already tried porting into Java myself but I have nowhere near the experience and gave up promptly.
Is there a way to run Riptide's Update function in a background service in Java or should I start looking into an alternative way of dealing with it? Thank you for taking the time to read this
I originally created a Java plugin to communicate between Java and Unity and it worked, problem was I could not update the client instance in any way from the Java side of things. I then looked into JNI and C++ solutions online, but I couldn't understand if that would allow me to somehow run the 3rd party library code in Java. Some other solutions came across had restrictions on them so I cannot use them.