Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-28347

android: implement cookie in webview to have parity

    Details

    • Type: Improvement
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android

      Description

      After implementing TIMOB-26915, in iOS, every WebView will have it's own cookie management. It will not be in sync with Ti.Network.HTTPClient cookies.
      In android, it looks System Cookie are used for WebView only. I think it can be moved inside WebView to have parity.

      New WebView cookie APIs -
      Method -
      a) webview.addCookie(Titanium.Network.Cookie);
      b) webview.removeCookie('domain', 'path', 'name');
      c) webview.removeAllCookies();
      d) webview. removeCookiesForDomain('domain') -> Array(Titanium.Network.Cookie)
      e) webview.getCookies(''domain', 'path', 'name') -> Array(Titanium.Network.Cookie)
      f) webview.cookiesForDomain('domain') -> Array(Titanium.Network.Cookie)

      Property (read-only) -
      e) webview.allCookies -> Array(Titanium.Network.Cookie)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                vijaysingh Vijay Singh
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration