No description, website, or topics provided.
Python Objective-C JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.settings
Classes
assets
documentation
example
hooks
platform
ti-webview-plus.xcodeproj
.gitignore
.project
CHANGELOG.txt
JpKing3WebviewPlus_Prefix.pch
LICENSE
LICENSE.txt
README.md
build.py
jp.king3.webview.plus-iphone-1.0.zip
manifest
module.xcconfig
timodule.xml
titanium.xcconfig

README.md

Handle own url schemas;

var wb = require('jp.king3.webview.plus').createWebViewPlus({
  url: "http://your-site.com/"
});

wb.schemaHandles = ['platform://']; // your own schema
wb.addEventListener('platform://', function(e){
  alert(e.url); // alert 'platform://google.co.jp/' without changing url;
  setTimeout(function(){ Ti.Platform.openURL(e.url.replace(/^platform/, 'http')); }, 3000);
});
<html>
<body>
  <a href="platform://google.co.jp/">click me!</a>
</body>
</html>