Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2435] iOS : Support Ti.App.fireEvent functionality in Ti.WKWebView module

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusResolved
ResolutionFixed
Resolution Date2018-06-27T09:17:58.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
LabelsiOS
ReporterVijay Singh
AssigneeVijay Singh
Created2018-06-21T08:52:14.000+0000
Updated2018-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

FileDateSize
test.html2018-06-22T07:51:34.000+0000495

Comments

  1. Vijay Singh 2018-06-22

    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();
       
       

JSON Source