Widget - App may push the list view twice when launched from widget

Issue Description:

Tapping the app widget sometimes triggers the Universal Link twice, causing duplicate navigation or actions within the app

Steps to Reproduce:

Add the app widget to the home screen Tap the widget to open the app via the Universal Link Observe that the Universal Link is sometimes fired twice

Expected Behavior:

Tapping the widget should trigger the Universal Link only once.

Actual Behavior:

Universal Link is triggered twice, causing duplicate navigation or actions.

Thanks for the post. I’m trying to figure out if this is a bug report or there is something you are doing that causing that experience and I can help as tapping an app widget should indeed trigger a Universal Link only once, not twice . The observed behavior of it sometimes firing twice can lead to a poor user experience, causing duplicate actions, navigation, or data processing.

The core issue is that the mechanism for opening the Universal Link from the widget, or the app's handling of that link, is being invoked more than once for a single user tap.

Would you be able to provide me the app you are using as well as a link to your AASA file.

If you're using a Link view in SwiftUI for your widget, ensure there isn't any accidental nesting or multiple Link instances covering the same tap area.

Place a breakpoint or detailed logging at the delegate where the app gets called at. Is this method being called twice for a single widget tap? If your app uses SwiftUI's App lifecycle, check if the closure passed to onOpenURL is executed twice.Do you have multiple places in your app that are configured to handle Universal Links, perhaps in different scenes or view controllers, leading to a duplicate processing chain? Add detailed logs with timestamps at every stage.

What version of iOS are you observing this on? Your application version? App name? How is your app handling the incoming Universal Link (e.g., the relevant parts of AppDelegate, SceneDelegate, or your App struct's onOpenURL modifier)?

By systematically investigating these areas and providing more details, we can narrow down the root cause of the duplicate Universal Link triggering. Looking forward to your reply and information about the app and AASA file.

Albert Pascual
  Worldwide Developer Relations.

Widget - App may push the list view twice when launched from widget
 
 
Q