Skip to content

Error thrown when trying to view offline suggestions for synced observation #1715

@albullington

Description

@albullington

Describe the bug
There's an error being thrown from the vision camera when a user tries to view offline suggestions for an existing, synced observation.

To Reproduce
Steps to reproduce the behavior:

  1. MyObservations -> ObsDetails -> ObsEdit -> airplane mode -> Suggestions
  2. App throws an error, and the user can’t see offline results and will get stuck on the loading ID screen

Expected behavior
It seems strange to me that we would want users to be able to see offline suggestions for existing observations -- it's an odd process since we would need to be able to first fetch the online photos to check for offline results, and we can't do that if the user is offline. So we likely want to avoid this state.

If we skip offline suggestions for synced photos altogether, we should decide what to show the user here. I'd recommend we check for synced photos and show the "iNaturalist has no ID suggestions for this photo." text, skipping offline suggestions and any text about being offline altogether, but would like @abhasinat to confirm what this state should look like.

Screenshots
Screenshot 2024-06-26 at 11 01 37 AM

Context (please complete the following information):

  • OS: iOS
  • App version: v0.34.0+97

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions