-
Notifications
You must be signed in to change notification settings - Fork 6k
Set deep linking flag to true by default #52350
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
shell/platform/android/test/io/flutter/embedding/android/FlutterFragmentActivityTest.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any mechanism for the framework to say whether pushRouteInformation
successfully pushed a known route? If so, it might be better to return that (the non-deprecated version of this API is async https://developer.apple.com/documentation/uikit/uiapplication/1648685-openurl, so we could migrate onto that)
@jmagman yes, framework method But i think migrating to a non-deprecated async API will be a separated issue and a separated PR from this flag change . |
I'm not really concerned that it's deprecated, more that this PR changes behavior where this method will be returning true even when there's no deep linking set up, and it's not opted into. |
Looks like the framework currently sends Maybe we can do
|
Why does iOS need to listen for |
cause didPushRouteInformation's return value is on the framework side, i thought the way for engine to get it is through a method channel, so the ios |
Can you make The didUpdateRouteInformation is to report current route in framework to engine. It will be smart enough to check whether the current route/state with the one in engine is the same or not before sending the request. So it is not guaranteed that |
That being said we should probably add the feature to reject deeplink in go_router, right now it just swallow all and handle error on the framework side |
Can you make _handleNavigationInvocation to return a future of boolean to indicate whether any of the widgetbindObserver.didpushRouteInformation has handled the route or not? >> noted, I will do that, thanks! |
@Hangyujin Are you wanting to make more changes or is this ready for revew? |
@reidbaker i want to land flutter/flutter#147901 and #52643 first. |
…r any of the observer has handled the route or not (#147901) follow up on comments on flutter/engine#52350
From PR triage: This appears to still be waiting on #52643 |
From triage: Is this ready for review yet? |
i will close this for now until #52643 is landed |
…mework (#52643) follow up on comments on #52350 framework pr : flutter/flutter#147901 ## Pre-launch Checklist - [ ] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [ ] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [ ] I read and followed the [Flutter Style Guide] and the [C++, Objective-C, Java style guides]. - [ ] I listed at least one issue that this PR fixes in the description above. - [ ] I added new tests to check the change I am making or feature I am adding, or the PR is [test-exempt]. See [testing the engine] for instructions on writing and running engine tests. - [ ] I updated/added relevant documentation (doc comments with `///`). - [ ] I signed the [CLA]. - [ ] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/wiki/Tree-hygiene#overview [Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene [test-exempt]: https://github.com/flutter/flutter/wiki/Tree-hygiene#tests [Flutter Style Guide]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style [testing the engine]: https://github.com/flutter/flutter/wiki/Testing-the-engine [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/wiki/Chat
590016d
to
c22082d
Compare
Thanks, for calling this out, @Hangyujin! I've created a docs bug for adding this info in Q4 (for that release). |
…152707) flutter/engine@17e3c7d...1cbe88e 2024-08-01 jonahwilliams@google.com [iOS] Supported rendering platform views without merging the raster thread. (flutter/engine#53826) 2024-08-01 jhy03261997@gmail.com Set deep linking flag to true by default (flutter/engine#52350) 2024-08-01 leroux_bruno@yahoo.fr [Android] Revert "Reset IME state on clear text input client" (flutter/engine#54277) 2024-08-01 skia-flutter-autoroll@skia.org Roll Skia from 03732b9f885e to ddb6901e6141 (5 revisions) (flutter/engine#54287) 2024-08-01 skia-flutter-autoroll@skia.org Roll Dart SDK from 5acd806b6dad to acbbbe73b5eb (1 revision) (flutter/engine#54286) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC jacksongardner@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…lutter#152707) flutter/engine@17e3c7d...1cbe88e 2024-08-01 jonahwilliams@google.com [iOS] Supported rendering platform views without merging the raster thread. (flutter/engine#53826) 2024-08-01 jhy03261997@gmail.com Set deep linking flag to true by default (flutter/engine#52350) 2024-08-01 leroux_bruno@yahoo.fr [Android] Revert "Reset IME state on clear text input client" (flutter/engine#54277) 2024-08-01 skia-flutter-autoroll@skia.org Roll Skia from 03732b9f885e to ddb6901e6141 (5 revisions) (flutter/engine#54287) 2024-08-01 skia-flutter-autoroll@skia.org Roll Dart SDK from 5acd806b6dad to acbbbe73b5eb (1 revision) (flutter/engine#54286) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC jacksongardner@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…lutter#152707) flutter/engine@17e3c7d...1cbe88e 2024-08-01 jonahwilliams@google.com [iOS] Supported rendering platform views without merging the raster thread. (flutter/engine#53826) 2024-08-01 jhy03261997@gmail.com Set deep linking flag to true by default (flutter/engine#52350) 2024-08-01 leroux_bruno@yahoo.fr [Android] Revert "Reset IME state on clear text input client" (flutter/engine#54277) 2024-08-01 skia-flutter-autoroll@skia.org Roll Skia from 03732b9f885e to ddb6901e6141 (5 revisions) (flutter/engine#54287) 2024-08-01 skia-flutter-autoroll@skia.org Roll Dart SDK from 5acd806b6dad to acbbbe73b5eb (1 revision) (flutter/engine#54286) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC jacksongardner@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
We noticed that the change in default of See internal bug b/371483505. |
@jacobsimionato a comment on a PR that was landed over two months ago is probably not the right way to flag this issue. I think the normal flow is to file a mirror issue in GitHub that can then go through teams' regular triage processes? |
Sorry about that! The reason I commented rather than filing a bug is because I'm not actually sure if this is a problem at all or intentional behavior that is fully expected. TBH I think it's probably the latter based on flutter.dev/go/deep-link-flag-migration. The team who filed b/371483505 in Google simply opted out of FlutterDeepLinkingEnabled so that issue is considered resolved and no-one is blocked. Maybe Chat or Discord is a better place to mention something like this? Anyway, apologies for the confusion and noise. |
@jocobsiomato I think the behavior is intended. It's not a flutter issue. If Firebase dynamic links integration is broken. They should update their docs to tell end users that if they want to use Firebase dynamic links, they must opt out of the Flutter default deep link setup by setting the flag. I replied in the internal issue. |
@hannah-hyj it seems unlikely they would know about this change in our code. Did we reach out to firebase to tell them? |
From their website, https://firebase.google.com/docs/dynamic-links/flutter/create Firebase dynamic links is deprecated, should we still nudge them on this? |
…ault value change. (#11461) The deep link flag default value is changed in flutter/engine#52350, and the PR is included Flutter 3.27 stable release. The Deep link docs should be updated to reflect the changes: 1. If you are using flutter deep link handlers, you don't need to manually set the flutter_deeplinking_enabled flag to true anymore. 3. If you use third-party plug-ins to handle deep links, you need to manually set the flutter_deeplinking_enabled flag to `false` More context: [Design doc](https://docs.google.com/document/d/1TUhaEhNdi2BUgKWQFEbOzJgmUAlLJwIAhnFfZraKgQs/edit?tab=t.0) _Issues fixed by this PR (if any): #10984 _PRs or commits this PR depends on (if any): flutter/engine#52350 ## Presubmit checklist - [ ] This PR is marked as draft with an explanation if not meant to land until a future stable release. - [ ] This PR doesn’t contain automatically generated corrections (Grammarly or similar). - [ ] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style) — for example, it doesn’t use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first person). - [ ] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer. --------- Co-authored-by: Shams Zakhour (ignore Sfshaza) <44418985+sfshaza2@users.noreply.github.com>
… website (#11493) Add doc about the breaking change and migration guide. Related PR: flutter/engine#52350 ## Presubmit checklist - [ ] This PR is marked as draft with an explanation if not meant to land until a future stable release. - [ ] This PR doesn’t contain automatically generated corrections (Grammarly or similar). - [ ] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style) — for example, it doesn’t use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first person). - [ ] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer. --------- Co-authored-by: Shams Zakhour (ignore Sfshaza) <44418985+sfshaza2@users.noreply.github.com>
doc: flutter.dev/go/deep-link-flag-migration
Action item: make sure customers are aware of this change before merging this PR.
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.