2 strange things happen when I try to push Safari ViewController:
Its adress bar with Done button is placed below my Navigation Bar;
Delegate method safariViewControllerDidFinish: does not get called when I press back button.
I don't think Apple would approve of this behavoir, so:
Is there a way to push Safari ViewController without these problems?
Cookies. In iOS9, cookies between the Safari system browser and the SFSafariViewController are only shared if they are persistent. Session cookies are not shared and can result in different authentication sessions between the system browser and the Safari view controller.
The view controller includes Safari features such as Reader, AutoFill, Fraudulent Website Detection, and content blocking. In iOS 9 and 10, it shares cookies and other website data with Safari.
Do not push a SFSafariViewController with the pushViewController:animated:
method, instead, use the presentViewController:animated:completion:
method.
The Safari view controller will be presented with a standard push animation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With