relaycorp / relaynet-gateway-android

Awala Gateway for Android
https://relaynet.network/users
GNU General Public License v3.0
9 stars 0 forks source link

App doesn't try to reconnect to its Internet gateway #717

Closed gnarea closed 12 months ago

gnarea commented 1 year ago

(Sorry about the vague title, but I don't really know how to summarise it, or even if it's one or more issues.)

I was using Letro this afternoon until 18:00 via WiFi, and everything worked fine. Then I left that place and switched to 5G.

At 20:56, connected to another WiFi network, I open Letro and send a message, but nothing happens. So I open Awala and see the usual "You're disconnected from Awala" screen, so I checked logcat and here's what I found:

I triggered a network change event by switching from WiFi to 5G, and then the app reported that it was connected to the Internet. When I checked the awala-logs.txt, I found that it'd just delivered the parcel from Letro.

So, two questions:

I wonder if the problem is that the last time we called GatewayClient.bind() was a few hours ago. If so, is there anything we can do in the SDK automatically?

sdsantos commented 1 year ago

It does look like the main issue is that Awala stopped running the PublicSync. The most likely reasons for that are: 1) It couldn't reach the public gateway, and it didn't recover from that state by itself 2) No app is bound to the Awala app

I think it's more likely the issue is 1) because you saw You're disconnected from Awala, which is unrelated to the Public Sync running, only to the connection state. So I'll investigate why the Awala app is losing connection and not recovering by itself from it.

github-actions[bot] commented 12 months ago

:tada: This issue has been resolved in version 1.8.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: