Skip to content

[Feature Request]: macOS: Support webpageURL parameter in handoff API #29926

@1akshat1

Description

@1akshat1

Preflight Checklist

Problem Description

Hi,

My team is trying to support universal linking in our application. Currently, in order to receive a handoff event from the browser, the application needs to listen to continue-activity event which provides type and userInfo. As per the Apple documentation here, the browser sends the app an NSUserActivity object with an activityType value of NSUserActivityTypeBrowsingWeb. The webpageURL property contains the URL the user was visiting, while the userInfo dictionary is empty.

To provide a smooth handoff our application needs to know the URL the user is navigating from. Therefore, it would be great if the webpageURL parameter is exposed in continue-activity event.

Proposed Solution

The NSUserActivity object contains the webpageURL property which is set during the handoff process.
I don't have any experience with Objective C but I believe the webpageURL property on the userActivity object can be allowed to pass here to make it accessible.

return browser->ContinueUserActivity(

Alternatives Considered

Additional Information

The application needs to know the URL from where the user is navigating to provide a customized handoff experience.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions