Hello,
I am using gomobile to build an android library for networking purposes. However, after keeping the phone screen off (App is still in background) for around 20 mins, I stop getting the responses from the .aar. Is there any way to keep the process alive? Some approaches that come to my mind are providing a wakelock to the .aar or using it as a bound service, but I am not sure how to do that with the .aar generated by gomobile.
Any help will be greatly appreciated. Thanks!
This looks like your program logic is getting blocked, so check where there’s serious blocking.