I have an app clip set up and working properly with my website’s smart banner successfully directing urls either to open in my app clip or in my full app. But I have a problem with the NSUserActivity object received by my SceneDelegate. If I send it a url I’ve used previously, it does not update and instead reports the last “different” url it received.
For example, if I send it these urls in order:
mysite.com/?txt=abc
mysite.com/?txt=def
mysite.com/?txt=ghi
mysite.com/?txt=jkl
it receives each new url as expected. But if I then try to send it one of the first three again (abc, def, ghi) it opens the app, but SceneDelegate reports that it still has jkl.
It looks like they’re being cached somewhere and ignored if they’re previously cached?
func scene(_ scene: UIScene, continue userActivity: NSUserActivity) {
let incomingURL = userActivity.webpageURL
print("Scene received: \(incomingURL!.absoluteString)")
respondTo(userActivity)
}
I’m a bit new to this, so probably missing something obvious?
Thanks.
For example, if I send it these urls in order:
mysite.com/?txt=abc
mysite.com/?txt=def
mysite.com/?txt=ghi
mysite.com/?txt=jkl
it receives each new url as expected. But if I then try to send it one of the first three again (abc, def, ghi) it opens the app, but SceneDelegate reports that it still has jkl.
It looks like they’re being cached somewhere and ignored if they’re previously cached?
func scene(_ scene: UIScene, continue userActivity: NSUserActivity) {
let incomingURL = userActivity.webpageURL
print("Scene received: \(incomingURL!.absoluteString)")
respondTo(userActivity)
}
I’m a bit new to this, so probably missing something obvious?
Thanks.