1

I already published my appclip and the app to the store. But now I found out that if the app is open in the background the activity for userActivities didn't get called.

I used this in the scene delegate:

scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
    for activity in connectionOptions.userActivities where activity.activityType == NSUserActivityTypeBrowsingWeb { appClipCodeURL = activity.webpageURL }

What should I call or where can I get the appclip link if the app is open in the background to scan another appclip with a different URL?

1 Answer 1

1

I got the solution:

func scene(_ scene: UIScene, continue userActivity: NSUserActivity) {
    if userActivity.activityType == NSUserActivityTypeBrowsingWeb {
        appClipCodeURL = userActivity.webpageURL
        print(appClipCodeURL)
    }
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.