Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12459

network-information and device plugins cause deviceready to not fire on cordova-ios 4+

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: cordova-ios@4.3.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Phonegap cli version 6.4.3, cordova cli 6.5.0, cordova platform ios 4.3.1

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              jcesarmobile jcesarmobile
              Reporter:
              willmam Mark
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: