I have the following code, after looking at the Fruta sample app.
If I just build and run the app clip I get:
Then if I go into my Schema and tick the _XCAppClipURL checkbox and enter a value of https://custom.com?id=1234567890
Build and run the app clip again, I get:
See how I have my new custom URL and the previous example URL. Go back into my Scheme setup and untick the _XCAppClipURL option.
Build and run the app clip again, I get:
And now I always get two activities when launching the app clip. Is it normal to get two? And how do you stop the https://example.com activity coming in?
Code Block swift @main struct MyClipApp: App { var body: some Scene { WindowGroup { ContentView() .onContinueUserActivity(NSUserActivityTypeBrowsingWeb, perform: handleUserActivity) } } } func handleUserActivity(_ userActivity: NSUserActivity) { print("Handle User Activity") guard let incomingURL = userActivity.webpageURL else { print("No incoming URL") return } print("Incoming URL: \(incomingURL)") }
If I just build and run the app clip I get:
Code Block Handle User Activity Incoming URL: https://example.com
Then if I go into my Schema and tick the _XCAppClipURL checkbox and enter a value of https://custom.com?id=1234567890
Build and run the app clip again, I get:
Code Block Handle User Activity Incoming URL: https://custom.com?id=1234567890 Handle User Activity Incoming URL: https://example.com
See how I have my new custom URL and the previous example URL. Go back into my Scheme setup and untick the _XCAppClipURL option.
Build and run the app clip again, I get:
Code Block Handle User Activity Incoming URL: https://example.com Handle User Activity Incoming URL: https://example.com
And now I always get two activities when launching the app clip. Is it normal to get two? And how do you stop the https://example.com activity coming in?