I implemented Safari View Controller in iOS app, but is there a way to send some data from javascript of opened site to main iOS app. I am opening my web app in the Safari VC.
Asked
Active
Viewed 1,653 times
0
-
1Possible duplicate of [SFSafariViewController - Interacting with the parent app from a web-page](https://stackoverflow.com/questions/35164505/sfsafariviewcontroller-interacting-with-the-parent-app-from-a-web-page) – brimstone May 23 '17 at 16:30
1 Answers
0
You cannot do this. from Apple Guideline and i quote.
The view controller includes Safari features such as Reader, AutoFill, Fraudulent Website Detection, and content blocking. It shares cookies and other website data with Safari. The user's activity and interaction with SFSafariViewController are not visible to your app, which cannot access AutoFill data, browsing history, or website data. You do not need to secure data between your app and Safari

elk_cloner
- 2,049
- 1
- 12
- 13
-
It doesn't say nor confirm that VC can't send data to the main app. What about Custom app uri, knowing we are still in the same app? – 1234567890 May 23 '17 at 17:03
-
i just answered your question.What you are asking now is modification. :) – elk_cloner May 23 '17 at 17:19