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
## Short description
refactored said function to handle stored Universal/AppLinks
## List of changes proposed in this pull request
- refactor of said function
- moved linking feature to its own folder, for cleanliness and ease of
expansion
- required tests
## How to test
using the io-dev-api-server on the latest version and reactotron to
check the app state, make sure that:
- opening a link like
`https://cittadini.dev.notifichedigitali.it/io?aar=asd123` opens the app
and displays the SEND flow ( after an authentication screen where
necessary)
- if the app was already open, but in background, then the state key
`features.backgroundLinking` is an empty object
- if it was closed, the same state key displays the open link while in
an authentication screen
- after authentication, said key should be empty again
- the app behaves as normal when woken up by a push notification
interaction
- different URLs, like
- `https://cittadini.uat.notifichedigitali.it/io?aar=asd123`
- `https://cittadini.notifichedigitali.it/io?aar=asd123`
- `https://cittadini.dev.notifichedigitali.it`
- `https://cittadini.dev.notifichedigitali.it/io`
do not wake or open the app.
- URLs also wake the app up when they are the result of a QRcode scan
automated tests should also pass
---------
Co-authored-by: Andrea <[email protected]>
0 commit comments