0

In an iOS App Extension such as the Today Widget, you can open the application when the widget is selected using NSExtensionContext. Is there any way to execute a method within the application (to move to a different UI view) only after the application is opened via the widget?

nao
  • 1,128
  • 1
  • 14
  • 37

1 Answers1

1

You will have to create a custom URL scheme which your app will register for and change the view based on the URL.

Example: myapp://action=showspecialview

Your app would then be launched and can parse the URL and do the special behavior when it detects showspecialview in the URL.

duncanc4
  • 1,191
  • 1
  • 9
  • 17