I writing and IOS app which connects with Google to identify the new user (registrationviewcontroller). So, the app open a web navigator to complete the identification process. When the identification process finish and return to the app thanks to my own URL scheme I would like to open a new View instead of registrationviewcontroller one.
Firstly, Where is the best places to call the new viewcontroller? In the method applicationDidBecomeActive of the APPdelegate? or in the load method from the Registration ViewController?
Secondly, How can I lunch the new ViewController?
Thanks in advance
If I understand you right, the app gets opened via a custom URL scheme. So
will be called when your app reopens and you can easily present a view controller there, e.g..:
BTW: I’d recommend you to show the registrationViewController modally, if you don’t already, this way you could simply dismiss it in handleOpenURL an would not need the code in the listing above. e.g.: