relaycorp / awala-ping-android

Android app for the Awala Ping Service
GNU General Public License v3.0
0 stars 0 forks source link

Pre-registration failed, received wrong reply #250

Open Filmaluco opened 2 years ago

Filmaluco commented 2 years ago

Describe the bug

If I attempt to use ping before establishing a connection with the awala gateway the ping app crashes. This is because we don't handle "GATEWAY_NOT_REGISTERED"

How to reproduce

Steps to reproduce the behavior: (must be done with a clean install on both, and no Internet access)

  1. Go to Awala (Gateway) complete the onboarding (make sure it says you are disconnected)
  2. Go to Ping
  3. See Ping Crash

Expected behavior

The Ping App should not crash, it should only display an info saying it failed to connect to a gateway or something similar

Additional context

To replicate make a clean install on both apps, and have no Internet access so the gateway can not establish a connection.