Post

Replies

Boosts

Views

Activity

NSUserActivity with URL and Location after opening the App Clip a second time, while still running in Background
Hello, i cant seem to find an answer, on how i can achieve, that i get the Invocation URL and Location (to check if it is in the CLRegion) a second time (when the app is still running, but a new NFC Tag/App Clip Code is scanned). When the user first starts (or after closing it in the App Switcher) the App Clip, the Location and URL is checked in the SceneDelegate function "func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions)". But i cannot find a way to get the NSUserActivity on the next Invocation, if it is opened by a NFC Tag or Code. Is there a way to get the new connectionOptions (UIScene.ConnectionOptions) through the sceneWillEnterForeground function? My usecase would be, that the user may encounter multiple App Clip Codes, which he scans and in between these scans, he/she may not close the app fully.
1
0
1.1k
Mar ’21