digitalfabrik / integreat-app

React JS and React Native App for Integreat
https://integreat.app
MIT License
46 stars 15 forks source link

Error when deep linking to another city on ios #2665

Closed sarahsporck closed 2 months ago

sarahsporck commented 7 months ago

Describe the Bug

On ios when I deep link to another city an error is sent to sentry. I think we try to open the in-app browser twice.

Steps to Reproduce

  1. Go to 'Augsburg Stadt/Willkommen'
  2. Deep link with npx uri-scheme open integreat://integreat.app/testumgebung/de/willkommen/bei-uns/stadtplan --ios
  3. See the following
    1. A web view is opened
    2. The app navigates to the Dashboard page (as the deep link leads to an error)

Expected Behavior

The web view is opened and the app does not navigate to the Dashboard Page. Also, no error is reported.

Actual Behavior

The app navigates to the Dashboard page and an error is reported.

Additional Information

See corresponding sentry issue.

steffenkleinle commented 6 months ago

Possibly related: https://github.com/digitalfabrik/integreat-app/issues/1922 We attempted to fix the same issue there.