coronanet / rn-coronanet

React native interface of the Corona Network
12 stars 4 forks source link

Implement the foreground service for the Go library #5

Closed karalabe closed 4 years ago

karalabe commented 4 years ago

This PR finally implements a Go backend integration into an Android foreground service. Long story short, it allows running networking Go code in the background indefinitely, without murdering it along with the app. :tada:

If anyone's following my path, to run a Go process in Android, you need to:

Just as a memo, even if your app is React Native, there's no getting around writing native Java code for this. The notification system is an integral part of Android and to set it up + run your own native code, RN is just a useless obstacle. Suck it up and jump into Java.

Screenshot_20200319-201717_One UI Home

Fixes https://github.com/coronanet/rn-coronanet/issues/3