[
https://issues.apache.org/jira/browse/CB-12459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
jcesarmobile closed CB-12459.
-----------------------------
Resolution: Not A Problem
Assignee: jcesarmobile
First of all, your code doesn't compile.
Second, you can't expect to edit the code as you wish but keep Cordova working,
as soon as you as you add the <UIWebViewDelegate> protocol you are breaking how
Cordova works, it's not the plugins fault.
Seriously, I closed your another issue and you reopened. From cordova-ios 3.x.x
to cordova-ios 4.x.x there were breaking changes, you have to adapt to them. If
you don't know how, keep asking on slack or stackoverflow, but stop creating
issues that don't make sense.
By design on cordova-ios 4.x.x the navigation delegates are handled by the
CDVUIWebViewEngine, not by the CDVViewController and that is not going to
change.
And based on what you asked on slack, you don't even need to do what you are
trying to do, you can get the webview reference in a lot of different ways
without the need to hijack the webViewDidFinishLoad
> network-information and device plugins cause deviceready to not fire on
> cordova-ios 4+
> --------------------------------------------------------------------------------------
>
> Key: CB-12459
> URL: https://issues.apache.org/jira/browse/CB-12459
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Device, Plugin Network Information
> Affects Versions: [email protected]
> Environment: Phonegap cli version 6.4.3, cordova cli 6.5.0, cordova
> platform ios 4.3.1
> Reporter: Mark
> Assignee: jcesarmobile
>
> installing either of these 2 plugins results in an app deviceready event not
> firing. It also results in the didFinishLaunchingWithOptions delegates not
> firing.
> I used a bare skeleton of an app, but executing only these commands :
> phonegap create test com.test "Test"
> cd test
> cordova platform add ios
> cordova plugin add cordova-plugin-network-information
> I edit the MainViewController.h file and add the protocol to the declaration :
> MainViewController implements CDVViewController <UIWebViewDelegate>
> I edit MainViewController.m and simply add the method definition :
> - (void)webViewDidFinishLoad:(UIWebView *)webView {
>
> [super webViewDidFinishLoad:theWebView];
> }
> I use XCode (7+) to install the app and run it on any iphone device and the
> deviceready event never fires.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]