cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <>
Subject [jira] [Commented] (CB-8463) StatusBarPlugin Issue scrollView not found when using WKWebView
Date Wed, 11 Mar 2015 18:58:41 GMT


Shazron Abdullah commented on CB-8463:

Hmm, this is a quandary. Ideally I don't want plugins to break, but I don't see why plugins
need to override this, they should use pluginInitialize instead:

I realize it's a public API, but it really is more of a "package" API for use by CordovaLib
to instantiate plugins.

Took a look at the battery status plugin, the contents of its initializer function really
should go in pluginInitialize. In fact, that's what our docs say for plugin dev:
"There is no designated initializer for plugins. Instead, plugins should use the pluginInitialize
method for their startup logic."

Changing the use to pluginInitialize will not break the plugins for cordova-ios 3.x as well
since pluginInitialize is supported in that series.

When making the API change, I considered that the 4.0 major version bump allowed us to get
rid of some of this type of technical debt, especially since the intended use was not as an
initializer for plugins themselves.

We could put out an Upgrade note here, as well as blog about it:

> StatusBarPlugin Issue scrollView not found when using WKWebView
> ---------------------------------------------------------------
>                 Key: CB-8463
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: Plugin Statusbar
>         Environment: iOS 8 
>            Reporter: Holly Schinsky
>            Assignee: Shazron Abdullah
> When using the WKWebView Plugin and the StatusBarPlugin together, the following error
is received from the *CDVStatusBar.m* class:
> {code}
>      CDVStatusBar.m:128:18: error: 
>       property 'scrollView' not found on object of type 'UIView *'
>     self.webView.scrollView.scrollsToTop = NO;
> {code}

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message