Is it possible to change iOS Safari settings progr

2019-01-28 16:45发布

问题:

Is it possible to change Safari settings in a native app like following :

  1. Accept Cookies : Never
  2. Javascript: Off
  3. Clear History, clear cookies and clear cache

Is the above possible and legal to do in a native app?

回答1:

Nop. You can change the cookie settings for your app only.



回答2:

I guess you are talking about a webview in your own application?

1) NO
You can delete them though: How to delete all cookies of UIWebView?
Also right after creation: Cookies in UIWebView

2) NO, its a system setting: UIWebView: Can You Disable Javascript?

3) There is no saved history in a webview. For cookies see 1),
for the Cache see: How to clear UIWebView cache?
Also interesting: UIWebView cache in iOS and Clearing UIWebview cache,