However, there is a pesky bug I can't seem to iron out and it's somehow related to the .onContinueUserActivity(NSUserActivityTypeBrowsingWeb) getting called more than once when testing the app clip.
It runs great on the first try, but afterwards it behaves as if there was already a url stored in cache or something of the sort. I change this URL by changing the _XCAppClipURL environment variable on the App Clip Scheme.
Code Block .onContinueUserActivity(NSUserActivityTypeBrowsingWeb) { userActivity in guard let incomingURL = userActivity.webpageURL, let components = NSURLComponents(url: incomingURL, resolvingAgainstBaseURL: true) else { return } print(incomingURL) }
This works great on the first run; it gets called only once.
After the first run, it will call one of the older URLs I passed and the new one. It will also call them on different orders, sometimes the older one first, sometimes the new one first.
I'd appreciate any advice or theories you can come up with, all help is appreciated!
Thanks!