-
Notifications
You must be signed in to change notification settings - Fork 3
Feature/deep linking #35
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
Conversation
To allow for deep linking, and generally make the navigation more more flexible, we need to use the new navigation system Router (Navigator 2.0) This commit emulates the behavior of the old router. Instead of ``` Navigator.push( context, MaterialPageRoute(...), ); ``` we can now use ``` MyRouterDelegate.of(context).push(MyPage(child: ...)); ```
Update packages so we can use flutter 2.0. This seems to fix deep linking with Router. Currently, with flutter 2.0.1, deep linking does not work on android. It couses a crash, as described in flutter/flutter#75261. The fix to this issue has been merged, but apparantly it's not included in the release 2.0.1. The deep links are now only with custom scheme "thaliapp://". For universal links (https), we need to work with the website.
|
Deeplinking works now, on the flutter master channel. On android, Dee-links cause a crash if on the stable channel. This is fixed in flutter/engine#24146, which is apparently not included in the 2.0.1 stable branch: It is included in master: To switch to the master channel, run |
|
Btw, currently deep linking works for |
Rename routerDelegate and routInformationParser Check for login in routerDelegate, deprecating SplashScreen. If a link is opened while logged out, the stack is replaced with a login screen, so the link is lost. No other page can be opened while logged out. Fix deep link patterns Switch deep link schemes to https
Migrate to Router/Navigator 2.0 to support Deep Linking.
Add deep linking configuration for 'thaliapp://thalia.nu/' and 'https://thalia.nu/' links.
This should work, but somehow it does not. Deep Links open the app, but the url is
not actually being parsed by the RouteInformationParser. The parser is only called
with "/" upon starting the app.
The deep linking has to be fixed.
After that the routerDelegate should be improved a bit, as described by TODO comments.
Closes #22