Is it possible to change iOS Safari settings programmatically

前端 未结 2 1602
说谎
说谎 2020-12-21 11:29

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
相关标签:
2条回答
  • 2020-12-21 11:31

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

    0 讨论(0)
  • 2020-12-21 11:49

    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,

    0 讨论(0)
提交回复
热议问题