Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

stepupsoftware/titanium-cookies

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Titanium Cookies

Me want cookies from Titanium Webview. Om nom nom.

Compiled Modules

Why

Get cookies from webview too hard, evalJS too buggy.

var monster = require('com.polancomedia.cookies');

myWebview.addEventListener('load', function(e) {
    var url = e.url;
    
    Ti.API.info('fetch cookie for: ' + url);
    var cookies = monster.getCookie(url);

    for(var key in cookies){
        Ti.API.info('name: ' + key + ' value: ' + cookies[key]);
    }
});

See full example in the example folder.

Read more in blog post here.

Building

Using Gradle

Use gradle both to build ios and android using gradle. Use gradle ios or gradle android for device specific builds.

Using Ant

Use ant for both or ant ios or ant android for specific builds. Use ant test to run titanium.py run --platform ios command

Methods

getCookie(url)

  • url string for cookie to get

About

License

MIT License Copyright (c) 2014 Polanco Media, LLC

Credits

Om Nom Nom Image

About

Me want cookies. OM NOM NOM.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 65.5%
  • Objective-C 17.9%
  • Java 9.0%
  • JavaScript 7.6%