Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offer a deep linking solution for the News toolkit #154508

Open
elianortega opened this issue Sep 2, 2024 · 0 comments
Open

Offer a deep linking solution for the News toolkit #154508

elianortega opened this issue Sep 2, 2024 · 0 comments
Labels
c: proposal A detailed proposal for a change to Flutter team-news Owned by News Toolkit team

Comments

@elianortega
Copy link

Use case

As an active user of the News Toolkit, I’ve used it twice, and on both occasions, clients specifically requested the implementation of a deep linking solution. In my experience, deep linking is an essential feature for news applications to enhance user engagement and provide a seamless user experience. A common scenario is when a user shares a link to a news article, but instead of opening directly in the app, the link redirects to the web, even if the app is installed. I believe adding deep linking functionality would increase the value of the toolkit.

Proposal

This feature request stems from an existing PR I created for the News Toolkit. The toolkit currently uses Firebase Dynamic Links to handle sign-in with email links. However, with the announcement that Dynamic Links are being deprecated, I created a PR that adds an abstraction for the deep link client, DeepLinkClient, and implements this abstraction using the current Dynamic Links setup. The abstraction would enable an easy transition from Dynamic Links to a new solution.

But then Firebase communicated that this functionality will be replaced, not deprecated. Still, adding the abstraction could be a first step toward integrating deep link handling into the toolkit.

My proposal is to build on top of the existing PR (#1158) and implement the simplest form of deep link handling for the News Toolkit: opening a news article based on the link that opened the app. The most common scenario would involve extracting the slug from the link, which is usually the string following the last forward slash. For example:

https://blog.google/technology/ai/google-io-2024-100-announcements/

The slug for this link would be google-io-2024-100-announcements.

The initial scope of this feature would be to extract the slug from the link and add a search by slug API to the dart frog server.

@danagbemava-nc danagbemava-nc added in triage Presently being triaged by the triage team c: proposal A detailed proposal for a change to Flutter team-news Owned by News Toolkit team and removed in triage Presently being triaged by the triage team labels Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: proposal A detailed proposal for a change to Flutter team-news Owned by News Toolkit team
Projects
None yet
Development

No branches or pull requests

2 participants