App Search API Validation Tool passes but Handoff not working

I have adopted Universal Links in my app. The App Search API Validation Tool is passing all validations, including Link to Application.


But when I open the web page in Safari on my Mac and open App Switcher on my iPhone, it only shows Safari to handoff, when it should have instead shown my app (like what happens with the Trello app and website). Similarly, when I'm in my app and I've made an NSUserActivity current with the webpage URL included, Safari does not come up as a handoff suggestion on my MacBook.


Now if I send the link to the webpage to myself and tap on it, it properly opens the app instead of Safari. But it doesn't provide the option to open it in Safari in the status bar at the top right, but maybe that's a change in iOS 11, so that's fine.


Why isn't Handoff working properly here?

On the iPhone in App Switcher at the bottom - the app shown for Handoff is Safari not my native app. Nothing related to any App Store here.

Can you post the URL of where your apple-app-site-association file is?

I sure can, thanks for looking into it. I posted it but that reply is awaiting moderation, has been now for >24 hours. Maybe there's a better way for me to send that to you?

Looks like you're missing some info in the app association file. In particular, the activitycontinuation entry is needed for supporting handoff. Have a look at the Adopting Handoff documentation for the details that you'd need to implement.

Thank you! Updated that and added activitycontinuation into the entitlements and now it's working - when in Safari on Mac it hands off to the native app on iOS.


However the opposite direction is not working. I interact with an item, causing the activity to becomeCurrent, yet Safari doesn't appear as a Handoff suggestion on the Mac. I did confirm it works from Safari on iPad, Handoff appears on the Mac, so I know it's working there. I also confirmed I'm able to handoff from iPad to iPhone. Sounds like I have everything in place though. Am I missing anything to make that work from native to web?

App Search API Validation Tool passes but Handoff not working
 
 
Q