Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds support for deep linking within the app. This means that if the user has the app installed and opens any https://picsa.app link from their device, the link will automatically open in the app instead of the web browser. This allows for things like sharing links to specific resources on whatsapp that will open in the app.
In addition an extra visual prompt was added for users without the app installed, to install the app when accessing the same picsa.app links on mobile
Discussion
If we can try ensure all participants have the update installed then in the future we can use to help direct towards specific resources in group chats
This might work slightly inconsistently in cases where we want to link to a new resource added to the app, but the participant has not updated their app with the new resources in it. In the future we will want to allow the app to receive updates to resources when online (instead of requiring full play store update), but for now we just should be aware of this limitation.
Preview
Released as version 3.12.0
https://picsa.app
Screenshots / Videos
Example clicking a link shared on whatsapp which opens directly in the app
Untitled_.Oct.20.2022.7_21.PM.webm
Example opening the picsa.app website on a mobile device (prompt will open in app instead)
Untitled_.Oct.20.2022.6_39.PM.webm