[MOD-2435] iOS : Support Ti.App.fireEvent functionality in Ti.WKWebView module
| GitHub Issue | n/a |
| Type | New Feature |
| Priority | High |
| Status | Resolved |
| Resolution | Fixed |
| Resolution Date | 2018-06-27T09:17:58.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | iOS |
| Reporter | Vijay Singh |
| Assignee | Vijay Singh |
| Created | 2018-06-21T08:52:14.000+0000 |
| Updated | 2018-06-27T09:17:58.000+0000 |
Description
Currently Ti.WKWebView module do not support Ti.App.fireEvent functionality. In Ti.UI.WebView we support the same. As part of TIMOB-26095 we have to move this module to core . Before that if we support Ti.App.fireEvent functionality in this module, will help in backward compatibility in Ti.UI.WebView.
Attachments
| File | Date | Size |
| test.html | 2018-06-22T07:51:34.000+0000 | 495 |
PR - https://github.com/appcelerator-modules/Ti.WKWebView/pull/20 Test Case -
var WK = require('ti.wkwebview'); var win = Ti.UI.createWindow(); var webView = WK.createWebView({ url: 'test.html', }); Ti.App.addEventListener('eventToTitanium', function(e) { Ti.API.info(e); Ti.App.fireEvent('eventToJs', {message:'Titanium'}); }); Ti.App.addEventListener('backEventToTitanium', function(e) { alert(e); }); win.add(webView); win.open();