You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're disconnected from the Internet when you open the gateway app for the first time, you'll get the screen saying that you're disconnected from the Internet (as expected). However, if you then connect to the Internet, the screen is updated to say that you're connected, but there's no attempt to actually register with the Internet gateway, so no Awala-compatible app can use the local gateway app.
How to reproduce
Steps to reproduce the behavior:
Clear the Awala app data, or reinstall the app.
Disconnect from the Internet.
Open the Awala app and go through the onboarding screens.
Observe the screen that says that you're disconnect from Awala.
Connect to the Internet.
Observe the screen that says that you're connected to Awala.
Use Letro or Awala Ping. The Awala SDK will throw an exception because the Awala app isn't yet registered with its Internet gateway.
Expected behavior
The Awala app tries to register with the Internet gateway as soon as the connection with the Internet is established.
Additional context
Killing the Awala app after connecting to the Internet is a workaround.
The text was updated successfully, but these errors were encountered:
@gnarea What approach you would prefer here?
a) Try to register periodically after the first failure (every minute for example)
b) Try to register on any ConnectionState change after the first failure
c) Combine a) and b), making sure that 2 registrations can't happen at the same time
d) Try to register if needed before starting the public sync, also making sure 2 registrations can't happen at the same time
I think it'd be ideal to attempt to register the first time that we succeed in pinging the Internet gateway -- basically, the same logic that governs the main screen and shows the "You're connected to Awala via the Internet" message. Is this option D?
Having said that, if that's too complicated, I'm open to other options.
Closes#714
Also fixes 2 issues I found:
- Certificates weren't deleted if expired, because that method was called after the never-ending public sync method
- The gateway certificate we received expires after 30 days, and we were always renewing them if the expiration date was less than 90 days (changed to 25 days)
Describe the bug
If you're disconnected from the Internet when you open the gateway app for the first time, you'll get the screen saying that you're disconnected from the Internet (as expected). However, if you then connect to the Internet, the screen is updated to say that you're connected, but there's no attempt to actually register with the Internet gateway, so no Awala-compatible app can use the local gateway app.
How to reproduce
Steps to reproduce the behavior:
Expected behavior
The Awala app tries to register with the Internet gateway as soon as the connection with the Internet is established.
Additional context
Killing the Awala app after connecting to the Internet is a workaround.
The text was updated successfully, but these errors were encountered: