3

I am working on an appclip, when I scan a QR code, appclip card gets shown and on click of open appclips gets launched and I performed a booking flow. Now next time if user comes to appclips using QR code, then I want to show an alert to user, that there is a booking already, however if he simply searches by spotlight and opens the app then dont display any alert.

Upon my debugging I found no way to identify whether appclip got opened by appclip card or by spotlight search. Please help. Thanks in advance..

Vinoth Kumar
  • 156
  • 8

1 Answers1

0

Apple believes that launching from an app switcher is equivalent to launching through a card.

If a user returns to a previously launched App Clip from the App Library or Spotlight, the App Clip uses the invocation URL that it previously used to launch the App Clip.

https://developer.apple.com/documentation/app_clips/responding_to_invocations

I agree that this behavior is illogical and results in the app not working properly. I also faced this problem, maybe you found a workaround?

  • Answer fields are for _answers_. Do not use them to address a question to the questioner. – matt Jun 20 '22 at 02:54