diff --git a/mobile/lib/ui/tabs/home_widget.dart b/mobile/lib/ui/tabs/home_widget.dart index 86c52b9365..483d70432a 100644 --- a/mobile/lib/ui/tabs/home_widget.dart +++ b/mobile/lib/ui/tabs/home_widget.dart @@ -229,6 +229,9 @@ class _HomeWidgetState extends State { }); }); + // MediaExtension plugin handles the deeplink for android + // [todo 4/Feb/2025]We need to validate if calling this method doesn't break + // android deep linking Platform.isIOS ? _initDeepLinkSubscriptionForPublicAlbums() : null; // For sharing images coming from outside the app @@ -426,7 +429,9 @@ class _HomeWidgetState extends State { _collectionUpdatedEvent.cancel(); isOnSearchTabNotifier.dispose(); _pageController.dispose(); - _publicAlbumLinkSubscription.cancel(); + if (Platform.isIOS) { + _publicAlbumLinkSubscription.cancel(); + } super.dispose(); }