Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 25AD8200C18 for ; Sat, 11 Feb 2017 09:43:54 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2444E160B5D; Sat, 11 Feb 2017 08:43:54 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6D109160B51 for ; Sat, 11 Feb 2017 09:43:53 +0100 (CET) Received: (qmail 70496 invoked by uid 500); 11 Feb 2017 08:43:52 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 70478 invoked by uid 99); 11 Feb 2017 08:43:52 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Feb 2017 08:43:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id AFEB1183A61 for ; Sat, 11 Feb 2017 08:43:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id VglThuEfOuQ7 for ; Sat, 11 Feb 2017 08:43:50 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 55F7F5FCED for ; Sat, 11 Feb 2017 08:43:50 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 2E5CBE012C for ; Sat, 11 Feb 2017 08:43:43 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 00B0021D62 for ; Sat, 11 Feb 2017 08:43:41 +0000 (UTC) Date: Sat, 11 Feb 2017 08:43:41 +0000 (UTC) From: "Mark (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CB-12451) webViewDidFinishLoad delegate no longer available in CDVViewController MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 11 Feb 2017 08:43:54 -0000 Mark created CB-12451: ------------------------- Summary: webViewDidFinishLoad delegate no longer available in = CDVViewController Key: CB-12451 URL: https://issues.apache.org/jira/browse/CB-12451 Project: Apache Cordova Issue Type: Bug Components: CordovaLib, iOS Affects Versions: cordova-ios@4.3.1 Environment: phonegap cli version 6.4.3, cordova cli 6.5.0, cordov= a platform version iOS 4.3.1. Project uses default UIWebView. Problem is ex= perienced on iOS 9.3.5 through 10.2 on iPhone 4, iPhone 4S and iPhone 5 (th= ese were only the ones tested) Reporter: Mark Fix For: cordova-ios@4.3.1 This is a phone gap project and all object types are exactly as created whe= n the cordova platform add iOS CLI command is executed. When using UIWebVie= w, I manually change the interface (.h) for MainViewController.h which is a= CDVViewController type to call the delegates (by adding to the interface, which means the webViewDidFinishLoad gets called, but c= ompile fails on the [super webViewDidFinishLoad:theWebView] call with the m= essage that there is no interface in CDVViewController for webViewDidFinish= Load. When I check the CDVViewController.m and .h files, I see the selector= s / methods are no longer present when comparing to pre-4.0 cordova version= s. If I then remove the [super ...] call to get it to compile then the devi= ceready is never called and i have to make my app lose focus before it will= load.Ive added in the required tag to index.html which has no effec= t. I am aware the delegate is present in other files such as the navigator = and CDVUIWebViewDelegate.h but these are not called or available from CDVVi= ewController.=03 I have a few apps that rely on this once standard delegate callback. I need= it to be called because it is the only way i can think of to get a referen= ce to the UIWebView that cordova uses as default. Sure, I can access self.w= ebView or even reference the viewController webview property in other place= s but NONE of these are UIWebView... they are all UIView and do not allow m= e to call the stringByEvaluatingJavaScriptByString selector in order to exe= cute JavaScript in the same "virtual machine" as my app runs and therefore = have access to the methods in there. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org