Skip to content

Commit

Permalink
Deep Link Fixes (#1378)
Browse files Browse the repository at this point in the history
- [x] Fix Android opening the deep link in 3rd party app
- [x] Fix single deep link opening the page multiple times on iOS
- [x] Fix tapping multiple times on the deep link resulting in multiple
pages being opened
  • Loading branch information
beastoin authored Nov 22, 2024
2 parents a05792b + 1fff20d commit c526df4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:exported="true"
android:hardwareAccelerated="true"
android:launchMode="singleTop"
android:launchMode="singleTask"
android:theme="@style/LaunchTheme"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
Expand Down
2 changes: 1 addition & 1 deletion app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ class _DeciderWidgetState extends State<DeciderWidget> {
_appLinks = AppLinks();

// Handle links
_linkSubscription = _appLinks.uriLinkStream.listen((uri) {
_linkSubscription = _appLinks.uriLinkStream.distinct().listen((uri) {
debugPrint('onAppLink: $uri');
openAppLink(uri);
});
Expand Down

0 comments on commit c526df4

Please sign in to comment.