[
https://issues.apache.org/jira/browse/CB-6633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shazron Abdullah updated CB-6633:
---------------------------------
Component/s: (was: CordovaLib)
(was: CordovaJS)
iOS
> Embedding the WebView on iOS breaks all plugins
> -----------------------------------------------
>
> Key: CB-6633
> URL: https://issues.apache.org/jira/browse/CB-6633
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 3.4.0
> Reporter: Björn Vermeule
> Labels: cordova, cordova_plugins.js,, ios
>
> I have manually embedded the WebView on a Storyboard in iOS. I've done this
> by generating a new application using the Cordova CLI and then commenting the
> initialization part in AppDelegate.didFinishLaunchingWithOptions. I have then
> created a ViewController that sits between the Storyboard and the generated
> controller that derives from CDVViewController. Embedding the WebView works
> perfectly fine this way. However, all communication between JavaScript and
> the native code has stopped working. This also means the DeviceReady event
> does not get fired.
> I have tried the following:
> * It works fine on Android (but this might be less relevant)
> * Tried overriding CDVCommandQueue and CDVCommandDelegateImpl but the
> implemented functions do not get called.
> * I have put breakpoints in all functions of CDVCommandQueue in CordovaLib
> but none get called.
> * cordova.exec gets successfully called on JavaScripts' end.
> * Uncommenting the code in AppDelegate.didFinishLaunchingWithOptions (and
> thus overriding the embedded view) works perfectly
> * This applies to the Camera plugin and a simple custom plugin I made.
> I'm completely lost trying to find what the cause of this is. All I could
> find was this which seemed pretty much the same:
> http://stackoverflow.com/questions/19634361/cordova-3-0-on-ios-plugin-method-not-being-called/19854528
> If you want code or let me debug something please let me know. This applies
> to Cordova 3.4.1
--
This message was sent by Atlassian JIRA
(v6.2#6252)